Uses of Class
net.minecraftforge.event.entity.EntityEvent
-
-
Uses of EntityEvent in net.minecraftforge.client.event
Subclasses of EntityEvent in net.minecraftforge.client.event Modifier and Type Class Description classInputUpdateEventThis event is fired after player movement inputs are updated.
Handlers can freely manipulateMovementInputto cancel movement.classRenderNameplateEventRenderNameplateEvent is fired whenever the entity renderer attempts to render a name plate/tag of an entity.classRenderPlayerEventstatic classRenderPlayerEvent.Poststatic classRenderPlayerEvent.Pre -
Uses of EntityEvent in net.minecraftforge.event.brewing
Subclasses of EntityEvent in net.minecraftforge.event.brewing Modifier and Type Class Description classPlayerBrewedPotionEventThis event is called when a player picks up a potion from a brewing stand. -
Uses of EntityEvent in net.minecraftforge.event.entity
Subclasses of EntityEvent in net.minecraftforge.event.entity Modifier and Type Class Description static classEntityEvent.CanUpdateCanUpdate is fired when an Entity is being created.static classEntityEvent.EnteringChunkEnteringChunk is fired when an Entity enters a chunk.static classEntityEvent.EntityConstructingEntityConstructing is fired when an Entity is being created.static classEntityEvent.SizeThis event is fired whenever thePosechanges, and in a few other hardcoded scenarios.
CAREFUL: This is also fired in the Entity constructor.classEntityJoinWorldEventEntityJoinWorldEvent is fired when an Entity joins the world.classEntityLeaveWorldEventEntityLeaveWorldEvent is fired when an Entity leaves the world.classEntityMobGriefingEventEntityMobGriefingEvent is fired when mob griefing is about to occur and allows an event listener to specify whether it should or not.
This event is fired when ever themobGriefinggame rule is checked.
This event has aresult:Event.Result.ALLOWmeans this instance of mob griefing is allowed.Event.Result.DEFAULTmeans themobGriefinggame rule is used to determine the behaviour.Event.Result.DENYmeans this instance of mob griefing is not allowed.
This event is fired on theMinecraftForge.EVENT_BUS.classEntityMountEventThis event gets fired whenever a entity mounts/dismounts another entity.
entityBeingMounted can be null, be sure to check for that.classEntityStruckByLightningEventEntityStruckByLightningEvent is fired when an Entity is about to be struck by lightening.
This event is fired whenever an EntityLightningBolt is updated to strike an Entity inEntityLightningBolt#onUpdate()viaForgeEventFactory#onEntityStruckByLightning(Entity, EntityLightningBolt).
EntityStruckByLightningEvent.lightningcontains the instance of EntityLightningBolt attempting to strike an entity.
This event isCancelable.
If this event is canceled, the Entity is not struck by the lightening.
This event does not have a result.classEntityTravelToDimensionEventEntityTravelToDimensionEvent is fired before an Entity travels to a dimension.
EntityTravelToDimensionEvent.dimensioncontains the id of the dimension the entity is traveling to.
This event isCancelable.
If this event is canceled, the Entity does not travel to the dimension.
This event does not have a result.classPlaySoundAtEntityEventPlaySoundAtEntityEvent 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 inClientPlayerEntity.playSound(SoundEvent, float, float)andWorld.playSound(PlayerEntity, double, double, double, SoundEvent, SoundCategory, float, float).
PlaySoundAtEntityEvent.namecontains the name of the sound to be played at the Entity.
PlaySoundAtEntityEvent.volumecontains the volume at which the sound is to be played originally.
PlaySoundAtEntityEvent.pitchcontains the pitch at which the sound is to be played originally.
PlaySoundAtEntityEvent.newVolumecontains the volume at which the sound is actually played.
PlaySoundAtEntityEvent.newPitchcontains the pitch at which the sound is actually played.
Changing thePlaySoundAtEntityEvent.namefield 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.classProjectileImpactEventThis event is fired when a projectile entity impacts something.static classProjectileImpactEvent.Arrowstatic classProjectileImpactEvent.Fireballstatic classProjectileImpactEvent.FireworkRocketEvent is cancellable, causes firework to ignore the current hit and continue on its journey.static classProjectileImpactEvent.FishingBobberEvent is cancellable, causes bobber to ignore the current hit and continue on its journey.static classProjectileImpactEvent.Throwable -
Uses of EntityEvent in net.minecraftforge.event.entity.item
Subclasses of EntityEvent in net.minecraftforge.event.entity.item Modifier and Type Class Description classItemEventBase class for all EntityItem events.classItemExpireEventEvent that is fired when an EntityItem's age has reached its maximum lifespan.classItemTossEventEvent that is fired whenever a player tosses (Q) an item or drag-n-drops a stack of items outside the inventory GUI screens. -
Uses of EntityEvent in net.minecraftforge.event.entity.living
Subclasses of EntityEvent in net.minecraftforge.event.entity.living Modifier and Type Class Description classAnimalTameEventThis event is fired when anEntityAnimalis tamed.classEnderTeleportEventDeprecated.classEntityTeleportEventEntityTeleportEvent is fired when an event involving any teleportation of an Entity occurs.
If a method utilizes thisEventas 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.static classEntityTeleportEvent.ChorusFruitEntityTeleportEvent.ChorusFruit is fired before a LivingEntity is teleported due to consuming Chorus Fruit.static classEntityTeleportEvent.EnderEntityEntityTeleportEvent.EnderEntity is fired before an Enderman or Shulker randomly teleports.static classEntityTeleportEvent.EnderPearlEntityTeleportEvent.EnderPearl is fired before an Entity is teleported from an EnderPearlEntity.static classEntityTeleportEvent.SpreadPlayersCommandEntityTeleportEvent.SpreadPlayersCommand is fired before a living entity is teleported from use ofSpreadPlayersCommand.static classEntityTeleportEvent.TeleportCommandEntityTeleportEvent.TeleportCommand is fired before a living entity is teleported from use ofTeleportCommand.classLivingAttackEventLivingAttackEvent is fired when a living Entity is attacked.classLivingConversionEventstatic classLivingConversionEvent.PostLivingConversionEvent.Post is triggered when an entity is replacing itself with another entity.static classLivingConversionEvent.PreLivingConversionEvent.Pre is triggered when an entity is trying to replace itself with another entity This event may trigger every tick even if it was cancelled last tick for entities like Zombies and Hoglins.classLivingDamageEventLivingDamageEvent is fired just before damage is applied to entity.
At this point armor, potion and absorption modifiers have already been applied to damage - this is FINAL value.
Also note that appropriate resources (like armor durability and absorption extra hearths) have already been consumed.
This event is fired whenever an Entity is damaged inEntityLivingBase#damageEntity(DamageSource, float)andEntityPlayer#damageEntity(DamageSource, float).
This event is fired via theForgeHooks#onLivingDamage(EntityLivingBase, DamageSource, float).
LivingDamageEvent.sourcecontains the DamageSource that caused this Entity to be hurt.classLivingDeathEventLivingDeathEvent is fired when an Entity dies.classLivingDestroyBlockEventFired when the ender dragon or wither attempts to destroy a block and when ever a zombie attempts to break a door.classLivingDropsEventLivingDropsEvent is fired when an Entity's death causes dropped items to appear.
This event is fired whenever an Entity dies and drops items inEntityLivingBase#onDeath(DamageSource).
This event is fired via theForgeHooks#onLivingDrops(EntityLivingBase, DamageSource, ArrayList, int, boolean).
LivingDropsEvent.sourcecontains the DamageSource that caused the drop to occur.
LivingDropsEvent.dropscontains the ArrayList of EntityItems that will be dropped.
LivingDropsEvent.lootingLevelcontains the amount of loot that will be dropped.
LivingDropsEvent.recentlyHitdetermines whether the Entity doing the drop has recently been damaged.
This event isCancelable.
If this event is canceled, the Entity does not drop anything.
This event does not have a result.classLivingEntityUseItemEventstatic classLivingEntityUseItemEvent.FinishFired after an item has fully finished being used.static classLivingEntityUseItemEvent.StartFired when a player starts 'using' an item, typically when they hold right mouse.static classLivingEntityUseItemEvent.StopFired when a player stops using an item without the use duration timing out.static classLivingEntityUseItemEvent.TickFired every tick that a player is 'using' an item, seeLivingEntityUseItemEvent.Startfor info.classLivingEquipmentChangeEventLivingEquipmentChangeEventis fired when the Equipment of a Entity changes.classLivingEventLivingEvent is fired whenever an event involving Living entities occurs.
If a method utilizes thisEventas its parameter, the method will receive every child event of this class.
All children of this event are fired on theMinecraftForge.EVENT_BUS.static classLivingEvent.LivingJumpEventLivingJumpEvent is fired when an Entity jumps.
This event is fired whenever an Entity jumps inEntityLivingBase#jump(),EntityMagmaCube#jump(), andEntityHorse#jump().
This event is fired via theForgeHooks#onLivingJump(EntityLivingBase).
This event is notCancelable.
This event does not have a result.static classLivingEvent.LivingUpdateEventLivingUpdateEvent is fired when an Entity is updated.static classLivingEvent.LivingVisibilityEventclassLivingExperienceDropEventEvent for when an entity drops experience on its death, can be used to change the amount of experience points dropped or completely prevent dropping of experience by canceling the event.classLivingFallEventLivingFallEvent is fired when an Entity is set to be falling.
This event is fired whenever an Entity is set to fall inEntityLivingBase#fall(float, float).
This event is fired via theForgeHooks#onLivingFall(EntityLivingBase, float, float).
LivingFallEvent.distancecontains the distance the Entity is to fall.classLivingHealEventLivingHealEvent is fired when an Entity is set to be healed.classLivingHurtEventLivingHurtEvent is fired when an Entity is set to be hurt.classLivingKnockBackEventLivingKnockBackEvent is fired when a living entity is about to be knocked back.classLivingPackSizeEventclassLivingSetAttackTargetEventLivingSetAttackTargetEvent is fired when an Entity sets a target to attack.
This event is fired whenever an Entity sets a target to attack inEntityLiving#setAttackTarget(EntityLivingBase)andEntityLivingBase#setRevengeTarget(EntityLivingBase).
This event is fired via theForgeHooks#onLivingSetAttackTarget(EntityLivingBase, EntityLivingBase).
LivingSetAttackTargetEvent.targetcontains the newly targeted Entity.
This event is notCancelable.
This event does not have a result.classLivingSpawnEventLivingSpawnEvent is fired for any events associated with Living Entities spawn status.static classLivingSpawnEvent.AllowDespawnFired each tick for despawnable mobs to allow control over despawning.static classLivingSpawnEvent.CheckSpawnFires before mob spawn events.static classLivingSpawnEvent.SpecialSpawnSpecialSpawn is fired when an Entity is to be spawned.
This allows you to do special inializers in the new entity.
This event is fired via theForgeEventFactory#doSpecialSpawn(EntityLiving, World, float, float, float).
This event isCancelable.
If this event is canceled, the Entity is not spawned.
This event does not have a result.classLootingLevelEventclassPotionColorCalculationEventFires after Potion Color Calculation.classPotionEventstatic classPotionEvent.PotionAddedEventThis Event is fired when a new Potion is added to the Entity.static classPotionEvent.PotionApplicableEventThis Event is fired to check if a Potion can get applied to an Entity.static classPotionEvent.PotionExpiryEventThis Event is fired when a Potion effect expires on an Entity.static classPotionEvent.PotionRemoveEventThis Event is fired when a Potion is about to get removed from an Entity.classZombieEventZombieEvent is fired whenever a zombie is spawned for aid.static classZombieEvent.SummonAidEventSummonAidEvent is fired when a Zombie Entity is summoned. -
Uses of EntityEvent in net.minecraftforge.event.entity.player
Subclasses of EntityEvent in net.minecraftforge.event.entity.player Modifier and Type Class Description classAdvancementEventThis event is fired when a player gets an advancement.classAnvilRepairEventFired when the player removes a "repaired" item from the Anvil's Output slot.classArrowLooseEventArrowLooseEvent is fired when a player stops using a bow.
This event is fired whenever a player stops using a bow inItemBow#onPlayerStoppedUsing(ItemStack, World, EntityLivingBase, int).
ArrowLooseEvent.bowcontains the ItemBow ItemStack that was used in this event.
ArrowLooseEvent.chargecontains the value for how much the player had charged before stopping the shot.
This event isCancelable.
If this event is canceled, the player does not stop using the bow.
This event does not have a result.classArrowNockEventArrowNockEvent is fired when a player begins using a bow.
This event is fired whenever a player begins using a bow inItemBow#onItemRightClick(World, EntityPlayer, EnumHand).
This event is fired on theMinecraftForge.EVENT_BUS.classAttackEntityEventAttackEntityEvent is fired when a player attacks an Entity.
This event is fired whenever a player attacks an Entity inEntityPlayer#attackTargetEntityWithCurrentItem(Entity).
AttackEntityEvent.targetcontains the Entity that was damaged by the player.classBonemealEventThis event is called when a player attempts to use Bonemeal on a block.classCriticalHitEventThis event is fired whenever a player attacks an Entity in EntityPlayer#attackTargetEntityWithCurrentItem(Entity).
This event is notCancelable.
This event has a result.classEntityItemPickupEventThis event is called when a player collides with a EntityItem on the ground.classFillBucketEventThis event is fired when a player attempts to use a Empty bucket, it can be canceled to completely prevent any further processing.classItemFishedEventThis event is called when a player fishes an item.classItemTooltipEventclassPlayerContainerEventstatic classPlayerContainerEvent.Closestatic classPlayerContainerEvent.OpenclassPlayerDestroyItemEventPlayerDestroyItemEvent is fired when a player destroys an item.
This event is fired whenever a player destroys an item inPlayerController#onPlayerDestroyBlock(BlockPos),PlayerController#processRightClick(PlayerEntity, World, Hand),PlayerController#processRightClickBlock(ClientPlayerEntity, ClientWorld, BlockPos, Direction, Vec3d, Hand),PlayerEntity#attackTargetEntityWithCurrentItem(Entity),PlayerEntity#damageShield(float),PlayerEntity.interactOn(Entity, Hand),ForgeHooks.getContainerItem(ItemStack),PlayerInteractionManager#processRightClick(PlayerEntity, World, ItemStack, Hand),PlayerInteractionManager#processRightClickBlock(PlayerEntity, World, ItemStack, Hand, BlockPos, Direction, float, float, float)andPlayerInteractionManager#tryHarvestBlock(BlockPos).
PlayerDestroyItemEvent.originalcontains the original ItemStack before the item was destroyed.classPlayerEventPlayerEvent is fired whenever an event involving Living entities occurs.static classPlayerEvent.BreakSpeedBreakSpeed is fired when a player attempts to harvest a block.
This event is fired whenever a player attempts to harvest a block inEntityPlayer#canHarvestBlock(IBlockState).
This event is fired via theForgeEventFactory#getBreakSpeed(EntityPlayer, IBlockState, float, BlockPos).
PlayerEvent.BreakSpeed.statecontains the block being broken.static classPlayerEvent.CloneFired when the EntityPlayer is cloned, typically caused by the network sending a RESPAWN_PLAYER event.static classPlayerEvent.HarvestCheckHarvestCheck is fired when a player attempts to harvest a block.
This event is fired whenever a player attempts to harvest a block inEntityPlayer#canHarvestBlock(IBlockState).
This event is fired via theForgeEventFactory#doPlayerHarvestCheck(EntityPlayer, IBlockState, boolean).
PlayerEvent.HarvestCheck.statecontains theIBlockStatethat is being checked for harvesting.static classPlayerEvent.ItemCraftedEventstatic classPlayerEvent.ItemPickupEventstatic classPlayerEvent.ItemSmeltedEventstatic classPlayerEvent.LoadFromFileThe player is being loaded from the world save.static classPlayerEvent.NameFormatNameFormat is fired when a player's display name is retrieved.
This event is fired whenever a player's name is retrieved inEntityPlayer#getDisplayName()orEntityPlayer#refreshDisplayName().
This event is fired via theForgeEventFactory#getPlayerDisplayName(EntityPlayer, String).
PlayerEvent.NameFormat.usernamecontains the username of the player.static classPlayerEvent.PlayerChangedDimensionEventstatic classPlayerEvent.PlayerChangeGameModeEventFired when the game type of a server player is changed to a different value than what it was previously.static classPlayerEvent.PlayerLoggedInEventstatic classPlayerEvent.PlayerLoggedOutEventstatic classPlayerEvent.PlayerRespawnEventstatic classPlayerEvent.SaveToFileThe player is being saved to the world store.static classPlayerEvent.StartTrackingFired when an Entity is started to be "tracked" by this player (the player receives updates about this entity, e.g.static classPlayerEvent.StopTrackingFired when an Entity is stopped to be "tracked" by this player (the player no longer receives updates about this entity, e.g.static classPlayerEvent.TabListNameFormatTabListNameFormat is fired when a player's display name for the tablist is retrieved.
This event is fired whenever a player's display name for the tablist is retrieved inServerPlayerEntity.getTabListDisplayName()orServerPlayerEntity.refreshTabListName().
This event is fired via theForgeEventFactory.getPlayerTabListDisplayName(PlayerEntity).
PlayerEvent.TabListNameFormat.getDisplayName()contains the display name of the player or null if the client should determine the display name itself.static classPlayerEvent.VisibilityDeprecated.classPlayerFlyableFallEventOccurs when a player falls, but is able to fly.classPlayerInteractEventPlayerInteractEvent is fired when a player interacts in some way.static classPlayerInteractEvent.EntityInteractThis event is fired on both sides when the player right clicks an entity.static classPlayerInteractEvent.EntityInteractSpecificThis event is fired on both sides whenever a player right clicks an entity.static classPlayerInteractEvent.LeftClickBlockThis event is fired when a player left clicks while targeting a block.static classPlayerInteractEvent.LeftClickEmptyThis event is fired on the client side when the player left clicks empty space with any ItemStack.static classPlayerInteractEvent.RightClickBlockThis event is fired on both sides whenever the player right clicks while targeting a block.static classPlayerInteractEvent.RightClickEmptyThis event is fired on the client side when the player right clicks empty space with an empty hand.static classPlayerInteractEvent.RightClickItemThis event is fired on both sides before the player triggersnet.minecraft.item.Item#onItemRightClick.classPlayerSetSpawnEventThis event is fired when a player's spawn point is set or reset.
The event can be canceled, which will prevent the spawn point from being changed.classPlayerSleepInBedEventPlayerSleepInBedEvent is fired when a player sleeps in a bed.classPlayerWakeUpEventThis event is fired when the player is waking up.
This is merely for purposes of listening for this to happen.
There is nothing that can be manipulated with this event.classPlayerXpEventPlayerXpEvent is fired whenever an event involving player experience occurs.static classPlayerXpEvent.LevelChangeThis event is fired when the player's experience level changes through thePlayerEntity#addExperienceLevelmethod.static classPlayerXpEvent.PickupXpThis event is fired after the player collides with an experience orb, but before the player has been given the experience.static classPlayerXpEvent.XpChangeThis event is fired when the player's experience changes through thePlayerEntity.giveExperiencePoints(int)method.classSleepingLocationCheckEventThis event is fired when game checks, if sleeping player should be still considered "in bed".
Failing this check will cause player to wake up.
This event has a result.classSleepingTimeCheckEventThis event is fired when the game checks if players can sleep at this time.
Failing this check will cause sleeping players to wake up and prevent awake players from sleeping.
This event has a result.classUseHoeEventDeprecated.
-