Modifier and Type | Class and Description |
---|---|
class |
InputUpdateEvent
This event is fired after player movement inputs are updated.
Handlers can freely manipulate MovementInput to cancel movement. |
class |
PlayerSPPushOutOfBlocksEvent
This event is called before the pushOutOfBlocks calls in EntityPlayerSP.
|
class |
RenderNameplateEvent
RenderNameplateEvent is fired whenever the entity renderer attempts to render a name plate/tag of an entity.
|
class |
RenderPlayerEvent |
static class |
RenderPlayerEvent.Post |
static class |
RenderPlayerEvent.Pre |
Modifier and Type | Class and Description |
---|---|
class |
PlayerBrewedPotionEvent
This event is called when a player picks up a potion from a brewing stand.
|
Modifier and Type | Class and Description |
---|---|
static class |
EntityEvent.CanUpdate
CanUpdate is fired when an Entity is being created.
|
static class |
EntityEvent.EnteringChunk
EnteringChunk is fired when an Entity enters a chunk.
|
static class |
EntityEvent.EntityConstructing
EntityConstructing is fired when an Entity is being created.
|
static class |
EntityEvent.EyeHeight
EyeHeight is fired when an Entity's eye height changes.
|
class |
EntityJoinWorldEvent
EntityJoinWorldEvent is fired when an Entity joins the world.
|
class |
EntityMobGriefingEvent
EntityMobGriefingEvent 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 the mobGriefing game rule is checked.This event has a result :
Result#ALLOW means this instance of mob griefing is allowed.
Result#DEFAULT means the mobGriefing game rule is used to determine the behaviour.
Result#DENY means this instance of mob griefing is not allowed.This event is fired on the MinecraftForge.EVENT_BUS . |
class |
EntityMountEvent
This event gets fired whenever a entity mounts/dismounts another entity.
entityBeingMounted can be null, be sure to check for that. |
class |
EntityStruckByLightningEvent
EntityStruckByLightningEvent 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 in EntityLightningBolt#onUpdate() via ForgeEventFactory#onEntityStruckByLightning(Entity, EntityLightningBolt) .EntityStruckByLightningEvent.lightning contains the instance of EntityLightningBolt attempting to strike an entity.This event is Cancelable .If this event is canceled, the Entity is not struck by the lightening. This event does not have a result. |
class |
EntityTravelToDimensionEvent
EntityTravelToDimensionEvent is fired before an Entity travels to a dimension.
EntityTravelToDimensionEvent.dimension contains the id of the dimension the entity is traveling to.This event is Cancelable .If this event is canceled, the Entity does not travel to the dimension. This event does not have a result. |
class |
PlaySoundAtEntityEvent
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 in ClientPlayerEntity.playSound(SoundEvent, float, float) and World.playSound(PlayerEntity, double, double, double, SoundEvent, SoundCategory, 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 the PlaySoundAtEntityEvent.name field will cause the sound of this name to be played instead of the originally intended sound.This event is Cancelable .If this event is canceled, the sound is not played. This event does not have a result. |
class |
ProjectileImpactEvent
This event is fired when a projectile entity impacts something.
|
static class |
ProjectileImpactEvent.Arrow |
static class |
ProjectileImpactEvent.Fireball |
static class |
ProjectileImpactEvent.FireworkRocket
Event is cancellable, causes firework to ignore the current hit and continue on its journey.
|
static class |
ProjectileImpactEvent.Throwable |
Modifier and Type | Class and Description |
---|---|
class |
ItemEvent
Base class for all EntityItem events.
|
class |
ItemExpireEvent
Event that is fired when an EntityItem's age has reached its maximum
lifespan.
|
class |
ItemTossEvent
Event that is fired whenever a player tosses (Q) an item or drag-n-drops a
stack of items outside the inventory GUI screens.
|
Modifier and Type | Class and Description |
---|---|
class |
AnimalTameEvent
This event is fired when an
EntityAnimal is tamed. |
class |
EnderTeleportEvent
Event for when an Enderman/Shulker teleports or an ender pearl is used.
|
class |
LivingAttackEvent
LivingAttackEvent is fired when a living Entity is attacked.
|
class |
LivingDamageEvent
LivingDamageEvent 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 in EntityLivingBase#damageEntity(DamageSource, float) and
EntityPlayer#damageEntity(DamageSource, float) .This event is fired via the ForgeHooks#onLivingDamage(EntityLivingBase, DamageSource, float) .LivingDamageEvent.source contains the DamageSource that caused this Entity to be hurt. |
class |
LivingDeathEvent
LivingDeathEvent is fired when an Entity dies.
|
class |
LivingDestroyBlockEvent
Fired when the ender dragon or wither attempts to destroy a block and when ever a zombie attempts to break a door.
|
class |
LivingDropsEvent
LivingDropsEvent is fired when an Entity's death causes dropped items to appear.
This event is fired whenever an Entity dies and drops items in EntityLivingBase#onDeath(DamageSource) .This event is fired via the ForgeHooks#onLivingDrops(EntityLivingBase, DamageSource, ArrayList, int, boolean) .LivingDropsEvent.source contains the DamageSource that caused the drop to occur.LivingDropsEvent.drops contains the ArrayList of EntityItems that will be dropped.LivingDropsEvent.lootingLevel contains the amount of loot that will be dropped.LivingDropsEvent.recentlyHit determines whether the Entity doing the drop has recently been damaged.This event is Cancelable .If this event is canceled, the Entity does not drop anything. This event does not have a result. |
class |
LivingEntityUseItemEvent |
static class |
LivingEntityUseItemEvent.Finish
Fired after an item has fully finished being used.
|
static class |
LivingEntityUseItemEvent.Start
Fired when a player starts 'using' an item, typically when they hold right mouse.
|
static class |
LivingEntityUseItemEvent.Stop
Fired when a player stops using an item without the use duration timing out.
|
static class |
LivingEntityUseItemEvent.Tick
Fired every tick that a player is 'using' an item, see
LivingEntityUseItemEvent.Start for info. |
class |
LivingEquipmentChangeEvent
LivingEquipmentChangeEvent is fired when the Equipment of a Entity changes. |
class |
LivingEvent
LivingEvent is fired whenever an event involving Living entities occurs.
If a method utilizes this Event as its parameter, the method will
receive every child event of this class.All children of this event are fired on the MinecraftForge.EVENT_BUS . |
static class |
LivingEvent.LivingJumpEvent
LivingJumpEvent is fired when an Entity jumps.
This event is fired whenever an Entity jumps in EntityLivingBase#jump() , EntityMagmaCube#jump() ,
and EntityHorse#jump() .This event is fired via the ForgeHooks#onLivingJump(EntityLivingBase) .This event is not Cancelable .This event does not have a result. |
static class |
LivingEvent.LivingUpdateEvent
LivingUpdateEvent is fired when an Entity is updated.
|
class |
LivingExperienceDropEvent
Event 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.
|
class |
LivingFallEvent
LivingFallEvent is fired when an Entity is set to be falling.
This event is fired whenever an Entity is set to fall in EntityLivingBase#fall(float, float) .This event is fired via the ForgeHooks#onLivingFall(EntityLivingBase, float, float) .LivingFallEvent.distance contains the distance the Entity is to fall. |
class |
LivingHealEvent
LivingHealEvent is fired when an Entity is set to be healed.
|
class |
LivingHurtEvent
LivingHurtEvent is fired when an Entity is set to be hurt.
|
class |
LivingKnockBackEvent
LivingKnockBackEvent is fired when a living entity is about to be knocked back.
|
class |
LivingPackSizeEvent |
class |
LivingSetAttackTargetEvent
LivingSetAttackTargetEvent is fired when an Entity sets a target to attack.
This event is fired whenever an Entity sets a target to attack in EntityLiving#setAttackTarget(EntityLivingBase) and
EntityLivingBase#setRevengeTarget(EntityLivingBase) .This event is fired via the ForgeHooks#onLivingSetAttackTarget(EntityLivingBase, EntityLivingBase) .LivingSetAttackTargetEvent.target contains the newly targeted Entity.This event is not Cancelable .This event does not have a result. |
class |
LivingSpawnEvent
LivingSpawnEvent is fired for any events associated with Living Entities spawn status.
|
static class |
LivingSpawnEvent.AllowDespawn
Fired each tick for despawnable mobs to allow control over despawning.
|
static class |
LivingSpawnEvent.CheckSpawn
Fires before mob spawn events.
|
static class |
LivingSpawnEvent.SpecialSpawn
SpecialSpawn 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 the ForgeEventFactory#doSpecialSpawn(EntityLiving, World, float, float, float) .This event is Cancelable .If this event is canceled, the Entity is not spawned. This event does not have a result. |
class |
LootingLevelEvent |
class |
PotionColorCalculationEvent
Fires after Potion Color Calculation.
|
class |
PotionEvent
|
static class |
PotionEvent.PotionAddedEvent
This Event is fired when a new Potion is added to the Entity.
|
static class |
PotionEvent.PotionApplicableEvent
This Event is fired to check if a Potion can get applied to an Entity.
|
static class |
PotionEvent.PotionExpiryEvent
This Event is fired when a Potion effect expires on an Entity.
|
static class |
PotionEvent.PotionRemoveEvent
This Event is fired when a Potion is about to get removed from an Entity.
|
class |
ZombieEvent
ZombieEvent is fired whenever a zombie is spawned for aid.
|
static class |
ZombieEvent.SummonAidEvent
SummonAidEvent is fired when a Zombie Entity is summoned.
|
Modifier and Type | Class and Description |
---|---|
class |
AdvancementEvent
This event is fired when a player gets an advancement.
|
class |
AnvilRepairEvent
Fired when the player removes a "repaired" item from the Anvil's Output slot.
|
class |
ArrowLooseEvent
ArrowLooseEvent is fired when a player stops using a bow.
This event is fired whenever a player stops using a bow in ItemBow#onPlayerStoppedUsing(ItemStack, World, EntityLivingBase, int) .ArrowLooseEvent.bow contains the ItemBow ItemStack that was used in this event.ArrowLooseEvent.charge contains the value for how much the player had charged before stopping the shot.This event is Cancelable .If this event is canceled, the player does not stop using the bow. This event does not have a result. |
class |
ArrowNockEvent
ArrowNockEvent is fired when a player begins using a bow.
This event is fired whenever a player begins using a bow in ItemBow#onItemRightClick(World, EntityPlayer, EnumHand) .This event is fired on the MinecraftForge.EVENT_BUS . |
class |
AttackEntityEvent
AttackEntityEvent is fired when a player attacks an Entity.
This event is fired whenever a player attacks an Entity in EntityPlayer#attackTargetEntityWithCurrentItem(Entity) .AttackEntityEvent.target contains the Entity that was damaged by the player. |
class |
BonemealEvent
This event is called when a player attempts to use Bonemeal on a block.
|
class |
CriticalHitEvent
This event is fired whenever a player attacks an Entity in
EntityPlayer#attackTargetEntityWithCurrentItem(Entity).
This event is not Cancelable .This event has a result. |
class |
EntityItemPickupEvent
This event is called when a player collides with a EntityItem on the ground.
|
class |
FillBucketEvent
This event is fired when a player attempts to use a Empty bucket, it
can be canceled to completely prevent any further processing.
|
class |
ItemFishedEvent
This event is called when a player fishes an item.
|
class |
ItemTooltipEvent |
class |
PlayerContainerEvent |
static class |
PlayerContainerEvent.Close |
static class |
PlayerContainerEvent.Open |
class |
PlayerDestroyItemEvent
PlayerDestroyItemEvent is fired when a player destroys an item.
This event is fired whenever a player destroys an item in PlayerController.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)
and PlayerInteractionManager.tryHarvestBlock(BlockPos) .PlayerDestroyItemEvent.original contains the original ItemStack before the item was destroyed. |
class |
PlayerEvent
PlayerEvent is fired whenever an event involving Living entities occurs.
|
static class |
PlayerEvent.BreakSpeed
BreakSpeed is fired when a player attempts to harvest a block.
This event is fired whenever a player attempts to harvest a block in EntityPlayer#canHarvestBlock(IBlockState) .This event is fired via the ForgeEventFactory#getBreakSpeed(EntityPlayer, IBlockState, float, BlockPos) .PlayerEvent.BreakSpeed.state contains the block being broken. |
static class |
PlayerEvent.Clone
Fired when the EntityPlayer is cloned, typically caused by the network sending a RESPAWN_PLAYER event.
|
static class |
PlayerEvent.HarvestCheck
HarvestCheck is fired when a player attempts to harvest a block.
This event is fired whenever a player attempts to harvest a block in EntityPlayer#canHarvestBlock(IBlockState) .This event is fired via the ForgeEventFactory#doPlayerHarvestCheck(EntityPlayer, IBlockState, boolean) .PlayerEvent.HarvestCheck.state contains the IBlockState that is being checked for harvesting. |
static class |
PlayerEvent.ItemCraftedEvent |
static class |
PlayerEvent.ItemPickupEvent |
static class |
PlayerEvent.ItemSmeltedEvent |
static class |
PlayerEvent.LoadFromFile
The player is being loaded from the world save.
|
static class |
PlayerEvent.NameFormat
NameFormat is fired when a player's display name is retrieved.
This event is fired whenever a player's name is retrieved in PlayerEntity.getDisplayName() for the first time or if PlayerEntity.refreshDisplayName() is called.This event is fired via ForgeEventFactory.getPlayerDisplayName(PlayerEntity, String) or ForgeEventFactory.getPlayerDisplayName(PlayerEntity, ITextComponent) .PlayerEvent.NameFormat.username contains the username of the player. |
static class |
PlayerEvent.PlayerChangedDimensionEvent |
static class |
PlayerEvent.PlayerLoggedInEvent |
static class |
PlayerEvent.PlayerLoggedOutEvent |
static class |
PlayerEvent.PlayerRespawnEvent |
static class |
PlayerEvent.SaveToFile
The player is being saved to the world store.
|
static class |
PlayerEvent.StartTracking
Fired when an Entity is started to be "tracked" by this player (the player receives updates about this entity, e.g.
|
static class |
PlayerEvent.StopTracking
Fired when an Entity is stopped to be "tracked" by this player (the player no longer receives updates about this entity, e.g.
|
static class |
PlayerEvent.Visibility
Fired when the world checks if a player is near enough to be attacked by an entity.
|
class |
PlayerFlyableFallEvent
Occurs when a player falls, but is able to fly.
|
class |
PlayerInteractEvent
PlayerInteractEvent is fired when a player interacts in some way.
|
static class |
PlayerInteractEvent.EntityInteract
This event is fired on both sides when the player right clicks an entity.
|
static class |
PlayerInteractEvent.EntityInteractSpecific
This event is fired on both sides whenever a player right clicks an entity.
|
static class |
PlayerInteractEvent.LeftClickBlock
This event is fired when a player left clicks while targeting a block.
|
static class |
PlayerInteractEvent.LeftClickEmpty
This event is fired on the client side when the player left clicks empty space with any ItemStack.
|
static class |
PlayerInteractEvent.RightClickBlock
This event is fired on both sides whenever the player right clicks while targeting a block.
|
static class |
PlayerInteractEvent.RightClickEmpty
This event is fired on the client side when the player right clicks empty space with an empty hand.
|
static class |
PlayerInteractEvent.RightClickItem
This event is fired on both sides before the player triggers
Item.onItemRightClick(net.minecraft.world.World, net.minecraft.entity.player.PlayerEntity, net.minecraft.util.Hand) . |
class |
PlayerSetSpawnEvent |
class |
PlayerSleepInBedEvent
PlayerSleepInBedEvent is fired when a player sleeps in a bed.
|
class |
PlayerWakeUpEvent
This 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. |
class |
PlayerXpEvent
PlayerXpEvent is fired whenever an event involving player experience occurs.
|
static class |
PlayerXpEvent.LevelChange
This event is fired when the player's experience level changes through the
PlayerEntity.addExperienceLevel(int) method. |
static class |
PlayerXpEvent.PickupXp
This event is fired after the player collides with an experience orb, but before the player has been given the experience.
|
static class |
PlayerXpEvent.XpChange
This event is fired when the player's experience changes through the
PlayerEntity.giveExperiencePoints(int) method. |
class |
SleepingLocationCheckEvent
This 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. |
class |
SleepingTimeCheckEvent
This 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. |
class |
UseHoeEvent
This event is fired when a player attempts to use a Hoe on a block, it
can be canceled to completely prevent any further processing.
|