public interface IForgeEntity extends ICapabilitySerializable<CompoundNBT>
| Modifier and Type | Method and Description | 
|---|---|
| default boolean | canBeRiddenInWater(Entity rider)Checks if this entity can continue to be ridden while it is underwater. | 
| default boolean | canRiderInteract()If a rider of this entity can interact with this entity. | 
| boolean | canTrample(BlockState state,
          BlockPos pos,
          float fallDistance)Checks if this  Entitycan trample aBlock. | 
| boolean | canUpdate() | 
| void | canUpdate(boolean value) | 
| java.util.Collection<ItemEntity> | captureDrops() | 
| java.util.Collection<ItemEntity> | captureDrops(java.util.Collection<ItemEntity> captureDrops) | 
| default void | deserializeNBT(CompoundNBT nbt) | 
| default EntityClassification | getClassification(boolean forSpawnCount)Returns The classification of this entity | 
| default Entity | getEntity() | 
| CompoundNBT | getPersistentData()Returns a NBTTagCompound that can be used to store custom data for this entity. | 
| default ItemStack | getPickedResult(RayTraceResult target)Called when a user uses the creative pick block button on this entity. | 
| boolean | isAddedToWorld()Gets whether this entity has been added to a world (for tracking). | 
| void | onAddedToWorld()Called after the entity has been added to the world's
 ticking list. | 
| void | onRemovedFromWorld()Called after the entity has been removed to the world's
 ticking list. | 
| void | revive()Revives an entity that has been removed from a world. | 
| default CompoundNBT | serializeNBT() | 
| default boolean | shouldRiderSit()Used in model rendering to determine if the entity riding this entity should be in the 'sitting' position. | 
getCapability, getCapabilitydefault Entity getEntity()
default void deserializeNBT(CompoundNBT nbt)
deserializeNBT in interface INBTSerializable<CompoundNBT>default CompoundNBT serializeNBT()
serializeNBT in interface INBTSerializable<CompoundNBT>boolean canUpdate()
void canUpdate(boolean value)
@Nullable java.util.Collection<ItemEntity> captureDrops()
java.util.Collection<ItemEntity> captureDrops(@Nullable java.util.Collection<ItemEntity> captureDrops)
CompoundNBT getPersistentData()
default boolean shouldRiderSit()
default ItemStack getPickedResult(RayTraceResult target)
target - The full target the player is looking atdefault boolean canRiderInteract()
default boolean canBeRiddenInWater(Entity rider)
rider - The entity that is riding this entitytrue if the entity can continue to ride underwater. false otherwise.boolean canTrample(BlockState state, BlockPos pos, float fallDistance)
Entity can trample a Block.pos - The block posfallDistance - The fall distancetrue if this entity can trample, false otherwisedefault EntityClassification getClassification(boolean forSpawnCount)
forSpawnCount - If this is being invoked to check spawn count caps.boolean isAddedToWorld()
World#onEntityAdded(Entity) and
 World#onEntityRemoved(Entity).void onAddedToWorld()
void onRemovedFromWorld()
void revive()