public class EntityDataCapabilityImplementation extends java.lang.Object implements IEntityDataCapability
| Constructor and Description |
|---|
EntityDataCapabilityImplementation() |
| Modifier and Type | Method and Description |
|---|---|
static IEntityDataCapability |
getCapability(net.minecraft.entity.Entity entity) |
void |
init(net.minecraft.entity.Entity entity,
net.minecraft.world.World world,
boolean init)
Initialize this data context.
|
void |
loadFromNBT(net.minecraft.nbt.NBTTagCompound compound)
Loads this capability from NBT.
|
void |
saveToNBT(net.minecraft.nbt.NBTTagCompound compound)
Saves this capability to NBT.
|
public static IEntityDataCapability getCapability(net.minecraft.entity.Entity entity)
public void init(net.minecraft.entity.Entity entity,
net.minecraft.world.World world,
boolean init)
IEntityDataCapabilityinit in interface IEntityDataCapabilityentity - the new entityworld - the new worldinit - true if all managers should be initializedpublic void saveToNBT(net.minecraft.nbt.NBTTagCompound compound)
IEntityDataCapabilitysaveToNBT in interface IEntityDataCapabilitycompound - the tag to write topublic void loadFromNBT(net.minecraft.nbt.NBTTagCompound compound)
IEntityDataCapabilityloadFromNBT in interface IEntityDataCapabilitycompound - the tag to read from