Package com.pixelmonmod.api.event
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
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
ConstructorDescriptionPlayerEatCakeEvent
(net.minecraft.server.level.ServerPlayer player, net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.BlockPos pos) -
Method Summary
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
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()
-