Uses of Package
net.minecraftforge.event.entity
Package
Description
Events fired only on the client-side, chiefly related to rendering and user interfaces (screens and input).
-
ClassDescriptionEntityEvent is fired when an event involving any Entity occurs.
If a method utilizes thisEvent
as its parameter, the method will receive every child event of this class.
EntityEvent.entity
contains the entity that caused this event to occur.
All children of this event are fired on theMinecraftForge.EVENT_BUS
. -
-
ClassDescriptionEntityAttributeCreationEvent.
Use this event to register attributes for your own EntityTypes. -
ClassDescriptionEntityAttributeCreationEvent.
Use this event to register attributes for your own EntityTypes.EntityAttributeModificationEvent.
Use this event to add attributes to existing entity types.EntityTeleportEvent is fired when an event involving any teleportation of an Entity occurs.
If a method utilizes thisEvent
as its parameter, the method will receive every child event of this class.
EntityTeleportEvent.getTarget()
contains the target destination.
EntityTeleportEvent.getPrev()
contains the entity's current position.
All children of this event are fired on theMinecraftForge.EVENT_BUS
.This event is fired on theMinecraftForge.EVENT_BUS
.
This event is fired when a projectile entity impacts something.
This event is fired viaForgeEventFactory.onProjectileImpact(Projectile, HitResult)
This event is fired for all vanilla projectiles by Forge, custom projectiles should fire this event and check the result in a similar fashion.This event allows eachEntityType
to have aSpawnPlacements.SpawnPredicate
registered or modified. -
ClassDescriptionEntityAttributeCreationEvent.
Use this event to register attributes for your own EntityTypes. -
ClassDescriptionThis event is fired whenever the
Pose
changes, and in a few other hardcoded scenarios.
CAREFUL: This is also fired in the Entity constructor.EntityTeleportEvent.ChorusFruit is fired before a LivingEntity is teleported due to consuming Chorus Fruit.EntityTeleportEvent.EnderEntity is fired before an Enderman or Shulker randomly teleports.EntityTeleportEvent.EnderPearl is fired before an Entity is teleported from an EnderPearlEntity.EntityTeleportEvent.SpreadPlayersCommand is fired before a living entity is teleported from use ofSpreadPlayersCommand
.EntityTeleportEvent.TeleportCommand is fired before a living entity is teleported from use ofTeleportCommand
. -
ClassDescriptionEntityEvent is fired when an event involving any Entity occurs.
If a method utilizes thisEvent
as its parameter, the method will receive every child event of this class.
EntityEvent.entity
contains the entity that caused this event to occur.
All children of this event are fired on theMinecraftForge.EVENT_BUS
. -
ClassDescriptionEntityEvent is fired when an event involving any Entity occurs.
If a method utilizes thisEvent
as its parameter, the method will receive every child event of this class.
EntityEvent.entity
contains the entity that caused this event to occur.
All children of this event are fired on theMinecraftForge.EVENT_BUS
.EntityTeleportEvent is fired when an event involving any teleportation of an Entity occurs.
If a method utilizes thisEvent
as its parameter, the method will receive every child event of this class.
EntityTeleportEvent.getTarget()
contains the target destination.
EntityTeleportEvent.getPrev()
contains the entity's current position.
All children of this event are fired on theMinecraftForge.EVENT_BUS
. -
ClassDescriptionEntityEvent is fired when an event involving any Entity occurs.
If a method utilizes thisEvent
as its parameter, the method will receive every child event of this class.
EntityEvent.entity
contains the entity that caused this event to occur.
All children of this event are fired on theMinecraftForge.EVENT_BUS
. -
ClassDescriptionEntityEvent is fired when an event involving any Entity occurs.
If a method utilizes thisEvent
as its parameter, the method will receive every child event of this class.
EntityEvent.entity
contains the entity that caused this event to occur.
All children of this event are fired on theMinecraftForge.EVENT_BUS
. -
ClassDescriptionEntityEvent is fired when an event involving any Entity occurs.
If a method utilizes thisEvent
as its parameter, the method will receive every child event of this class.
EntityEvent.entity
contains the entity that caused this event to occur.
All children of this event are fired on theMinecraftForge.EVENT_BUS
. -