public class EntityProperties
extends java.lang.Object
implements net.minecraftforge.common.IExtendedEntityProperties
| Modifier and Type | Field and Description |
|---|---|
net.minecraft.entity.EntityLivingBase |
entity |
static java.lang.String |
PROP_NAME |
| Modifier and Type | Method and Description |
|---|---|
void |
add(BuffEffect buff,
boolean isRemote) |
java.util.List<BuffEffect> |
getBuffs()
Retrieves a list of buffs from the EntityProperties instance.
|
static EntityProperties |
getProperties(net.minecraft.entity.EntityLivingBase entity)
Retrieves the EntityProperties instance from an Entity.
|
static boolean |
hasProperties(net.minecraft.entity.EntityLivingBase entity)
A check to determine whether or not an Entity has an instance of EntityProperties.
|
void |
init(net.minecraft.entity.Entity entity,
net.minecraft.world.World world) |
void |
loadNBTData(net.minecraft.nbt.NBTTagCompound compound) |
void |
remove(BuffEffect buff,
boolean isRemote) |
void |
saveNBTData(net.minecraft.nbt.NBTTagCompound compound) |
EntityProperties |
setBuffs(java.util.List<BuffEffect> buffs)
Sets a list of Buffs to this EntityProperties instance.
|
static EntityProperties |
setProperties(net.minecraft.entity.EntityLivingBase entity)
Sets the EntityProperties instance for an entity.
|
void |
sync(boolean forced)
Synchronizes the EntityProperties data.
|
public static final java.lang.String PROP_NAME
public final net.minecraft.entity.EntityLivingBase entity
public void saveNBTData(net.minecraft.nbt.NBTTagCompound compound)
saveNBTData in interface net.minecraftforge.common.IExtendedEntityPropertiespublic void loadNBTData(net.minecraft.nbt.NBTTagCompound compound)
loadNBTData in interface net.minecraftforge.common.IExtendedEntityPropertiespublic void init(net.minecraft.entity.Entity entity,
net.minecraft.world.World world)
init in interface net.minecraftforge.common.IExtendedEntityPropertiespublic void sync(boolean forced)
public static EntityProperties getProperties(net.minecraft.entity.EntityLivingBase entity)
entity: - The Entity to retrieve from.public static EntityProperties setProperties(net.minecraft.entity.EntityLivingBase entity)
entity: - The entity to set to.public static boolean hasProperties(net.minecraft.entity.EntityLivingBase entity)
entity: - The Entity to check.public java.util.List<BuffEffect> getBuffs()
public EntityProperties setBuffs(java.util.List<BuffEffect> buffs)
buffs: - The list of buffs to set.public void remove(BuffEffect buff, boolean isRemote)
public void add(BuffEffect buff, boolean isRemote)