cn.nukkit.entity.data.IntEntityData Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of powernukkit Show documentation
Show all versions of powernukkit Show documentation
A Minecraft Bedrock Edition server software implementation made in Java from scratch which supports all new features.
package cn.nukkit.entity.data;
import cn.nukkit.entity.Entity;
/**
* @author MagicDroidX (Nukkit Project)
*/
public class IntEntityData extends EntityData {
public int data;
public IntEntityData(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_INT;
}
}