Class PlayerEvent

java.lang.Object
net.neoforged.bus.api.Event
Direct Known Subclasses:
AdvancementEvent, AnvilRepairEvent, ArrowLooseEvent, ArrowNockEvent, AttackEntityEvent, CanPlayerSleepEvent, CriticalHitEvent, ItemFishedEvent, ItemTooltipEvent, MovementInputUpdateEvent, PermissionsChangedEvent, PlayerBrewedPotionEvent, PlayerContainerEvent, PlayerDestroyItemEvent, PlayerEvent.BreakSpeed, PlayerEvent.Clone, PlayerEvent.HarvestCheck, PlayerEvent.ItemCraftedEvent, 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, PlayerHeartTypeEvent, PlayerInteractEvent, PlayerRespawnPositionEvent, PlayerSetSpawnEvent, PlayerSpawnPhantomsEvent, PlayerTickEvent, PlayerWakeUpEvent, PlayerXpEvent, RenderPlayerEvent, StatAwardEvent, TradeWithVillagerEvent

public abstract 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 NeoForge.EVENT_BUS.
  • Field Details

    • player

      private final Player player
  • Constructor Details

    • PlayerEvent

      public PlayerEvent(Player player)
  • Method Details