All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.nukkit.entity.data.ByteEntityData Maven / Gradle / Ivy

Go to download

A Minecraft Bedrock Edition server software implementation made in Java from scratch which supports all new features.

There is a newer version: 1.6.0.1-PN
Show newest version
package cn.nukkit.entity.data;

import cn.nukkit.entity.Entity;

/**
 * @author MagicDroidX (Nukkit Project)
 */
public class ByteEntityData extends EntityData {
    public int data;

    public ByteEntityData(int id, int data) {
        super(id);
        this.data = data;
    }

    public Integer getData() {
        return data;
    }

    public void setData(Integer data) {
        if (data == null) {
            this.data = 0;
        } else {
            this.data = data;
        }
    }

    @Override
    public int getType() {
        return Entity.DATA_TYPE_BYTE;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy