Class ApricornEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.events.ApricornEvent
- Direct Known Subclasses:
ApricornEvent.Pick
public abstract class ApricornEvent
extends net.minecraftforge.eventbus.api.Event
Superclass event for all apricorn related actions. Subclasses:
ApricornEvent.Pick
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
ApricornEvent
subclass event which fires when an apricorn is being picked by a player.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
ModifierConstructorDescriptionprotected
ApricornEvent
(net.minecraft.world.level.Level level, net.minecraft.world.level.block.state.BlockState state, ApricornType apricorn, 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
-
ApricornEvent
protected ApricornEvent(net.minecraft.world.level.Level level, net.minecraft.world.level.block.state.BlockState state, ApricornType apricorn, net.minecraft.core.BlockPos pos)
-
-
Method Details
-
getLevel
public net.minecraft.world.level.Level getLevel()Gets the world they're in- Returns:
- The world
-
getState
public net.minecraft.world.level.block.state.BlockState getState()The state being modified- Returns:
- The state
-
getApricorn
Gets the apricorn type- Returns:
- The apricorn type
-
getPos
public net.minecraft.core.BlockPos getPos()Gets the block position- Returns:
- block position
-