Class PlayerEvent

java.lang.Object
net.minecraftforge.eventbus.api.Event
Direct Known Subclasses:
AdvancementEvent, AnvilRepairEvent, ArrowLooseEvent, ArrowNockEvent, AttackEntityEvent, BonemealEvent, CriticalHitEvent, EntityItemPickupEvent, FillBucketEvent, InputUpdateEvent, ItemFishedEvent, ItemTooltipEvent, 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, UseHoeEvent

public class PlayerEvent extends LivingEvent
PlayerEvent 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.
  • Field Details

    • entityPlayer

      private final Player entityPlayer
  • Constructor Details

    • PlayerEvent

      public PlayerEvent(Player player)
  • Method Details

    • getPlayer

      public Player getPlayer()
      Returns:
      Player