Class PlayerEvent

java.lang.Object
net.minecraftforge.eventbus.api.Event
Direct Known Subclasses:
AdvancementEvent, AdvancementEvent.AdvancementEarnEvent, AdvancementEvent.AdvancementProgressEvent, AnvilRepairEvent, ArrowLooseEvent, ArrowNockEvent, AttackEntityEvent, BonemealEvent, CriticalHitEvent, EntityItemPickupEvent, FillBucketEvent, ItemFishedEvent, ItemTooltipEvent, MovementInputUpdateEvent, PermissionsChangedEvent, PlayerBrewedPotionEvent, PlayerContainerEvent, PlayerDestroyItemEvent, PlayerEvent.BreakSpeed, PlayerEvent.Clone, PlayerEvent.HarvestCheck, PlayerEvent.ItemCraftedEvent, PlayerEvent.ItemPickupEvent, PlayerEvent.ItemSmeltedEvent, PlayerEvent.LoadFromFile, PlayerEvent.NameFormat, PlayerEvent.PlayerChangedDimensionEvent, PlayerEvent.PlayerChangeGameModeEvent, PlayerEvent.PlayerLoggedInEvent, PlayerEvent.PlayerLoggedOutEvent, PlayerEvent.PlayerRespawnEvent, PlayerEvent.SaveToFile, PlayerEvent.StartTracking, PlayerEvent.StopTracking, PlayerEvent.TabListNameFormat, PlayerFlyableFallEvent, PlayerInteractEvent, PlayerSetSpawnEvent, PlayerSleepInBedEvent, PlayerWakeUpEvent, PlayerXpEvent, RenderPlayerEvent, SleepingTimeCheckEvent, TradeWithVillagerEvent

public class PlayerEvent extends LivingEvent
PlayerEvent is fired whenever an event involving a Player 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.
  • Field Details

    • player

      private final Player player
  • Constructor Details

    • PlayerEvent

      public PlayerEvent(Player player)
  • Method Details