Uses of Package
net.minecraftforge.event.entity
Packages that use net.minecraftforge.event.entity
Package
Description
-
Classes in net.minecraftforge.event.entity used by net.minecraftforge.client.eventClassDescriptionEntityEvent 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
. -
Classes in net.minecraftforge.event.entity used by net.minecraftforge.commonClassDescriptionEntityJoinWorldEvent is fired when an Entity joins the world.
-
Classes in net.minecraftforge.event.entity used by net.minecraftforge.debug.client.renderingClassDescriptionEntityAttributeCreationEvent.
Use this event to register attributes for your own EntityTypes. -
Classes in net.minecraftforge.event.entity used by net.minecraftforge.debug.entityClassDescriptionEntityAttributeCreationEvent.
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. -
Classes in net.minecraftforge.event.entity used by net.minecraftforge.debug.itemClassDescriptionEntityAttributeCreationEvent.
Use this event to register attributes for your own EntityTypes. -
Classes in net.minecraftforge.event.entity used by net.minecraftforge.eventClassDescriptionThis 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
.PlaySoundAtEntityEvent is fired a sound is to be played at an Entity
This event is fired whenever a sound is set to be played at an Entity such as inLocalPlayer.playSound(SoundEvent, float, float)
andLevel.playSound(Player, double, double, double, SoundEvent, SoundSource, float, float)
.
PlaySoundAtEntityEvent.name
contains the name of the sound to be played at the Entity.
PlaySoundAtEntityEvent.volume
contains the volume at which the sound is to be played originally.
PlaySoundAtEntityEvent.pitch
contains the pitch at which the sound is to be played originally.
PlaySoundAtEntityEvent.newVolume
contains the volume at which the sound is actually played.
PlaySoundAtEntityEvent.newPitch
contains the pitch at which the sound is actually played.
Changing thePlaySoundAtEntityEvent.name
field will cause the sound of this name to be played instead of the originally intended sound.
This event isCancelable
.
If this event is canceled, the sound is not played.
This event does not have a result. -
Classes in net.minecraftforge.event.entity used by net.minecraftforge.event.brewingClassDescriptionEntityEvent 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
. -
Classes in net.minecraftforge.event.entity used by net.minecraftforge.event.entityClassDescriptionEntityEvent 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
. -
Classes in net.minecraftforge.event.entity used by net.minecraftforge.event.entity.itemClassDescriptionEntityEvent 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
. -
Classes in net.minecraftforge.event.entity used by net.minecraftforge.event.entity.livingClassDescriptionEntityEvent 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
. -
Classes in net.minecraftforge.event.entity used by net.minecraftforge.event.entity.playerClassDescriptionEntityEvent 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
.