Package | Description |
---|---|
net.minecraftforge.client.event | |
net.minecraftforge.event.brewing | |
net.minecraftforge.event.entity.player |
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 |
RenderPlayerEvent |
static class |
RenderPlayerEvent.Post |
static class |
RenderPlayerEvent.Pre |
static class |
RenderPlayerEvent.SetArmorModel
Deprecated.
|
static class |
RenderPlayerEvent.Specials
Deprecated.
|
static class |
RenderPlayerEvent.Specials.Post
Deprecated.
|
static class |
RenderPlayerEvent.Specials.Pre
Deprecated.
|
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 |
---|---|
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 PlayerControllerMP.onPlayerDestroyBlock(BlockPos) ,
PlayerControllerMP.processRightClick(EntityPlayer, World, EnumHand) ,
PlayerControllerMP.processRightClickBlock(EntityPlayerSP, WorldClient, BlockPos, EnumFacing, Vec3d, EnumHand) ,
EntityPlayer.attackTargetEntityWithCurrentItem(Entity) ,
EntityPlayer.damageShield(float) ,
EntityPlayer.interactOn(Entity, EnumHand) ,
ForgeHooks.getContainerItem(ItemStack) ,
PlayerInteractionManager.processRightClick(EntityPlayer, World, ItemStack, EnumHand) ,
PlayerInteractionManager.processRightClickBlock(EntityPlayer, World, ItemStack, EnumHand, BlockPos, EnumFacing, float, float, float)
and PlayerInteractionManager.tryHarvestBlock(BlockPos) .PlayerDestroyItemEvent.original contains the original ItemStack before the item was destroyed. |
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.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 EntityPlayer.getDisplayName() or EntityPlayer.refreshDisplayName() .This event is fired via the ForgeEventFactory.getPlayerDisplayName(EntityPlayer, String) .PlayerEvent.NameFormat.username contains the username of the player. |
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.EntityPlayer, net.minecraft.util.EnumHand) . |
class |
PlayerPickupXpEvent
This event is called when a player collides with a EntityXPOrb on the ground.
|
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 |
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.
|