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, 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, PlayerEvent.Visibility, 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

  • Constructor Details

  • Method Details

    • getPlayer

      public PlayerEntity getPlayer()
      Returns:
      Player