Class PlayerEatCakeEvent

java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.api.event.PlayerEatCakeEvent

public class PlayerEatCakeEvent extends net.minecraftforge.eventbus.api.Event
An event that is fired when a player eats a cake.
This event is fired on the MinecraftForge.EVENT_BUS.
  • Nested Class Summary

    Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event

    net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
  • Constructor Summary

    Constructors
    Constructor
    Description
    PlayerEatCakeEvent(net.minecraft.server.level.ServerPlayer player, net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.BlockPos pos)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.server.level.ServerPlayer
     
    net.minecraft.core.BlockPos
     
    net.minecraft.world.level.block.state.BlockState
     

    Methods inherited from class net.minecraftforge.eventbus.api.Event

    getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PlayerEatCakeEvent

      public PlayerEatCakeEvent(net.minecraft.server.level.ServerPlayer player, net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.BlockPos pos)
  • Method Details

    • getPlayer

      public net.minecraft.server.level.ServerPlayer getPlayer()
    • getState

      public net.minecraft.world.level.block.state.BlockState getState()
    • getPos

      public net.minecraft.core.BlockPos getPos()