public abstract class ApricornEvent
extends net.minecraftforge.eventbus.api.Event
ApricornEvent.Pick
Modifier and Type | Class and Description |
---|---|
static class |
ApricornEvent.Pick
ApricornEvent subclass event which fires when an apricorn is being picked by a player. |
Modifier | Constructor and Description |
---|---|
protected |
ApricornEvent(net.minecraft.world.World level,
net.minecraft.block.BlockState state,
ApricornType apricorn,
net.minecraft.util.math.BlockPos pos) |
Modifier and Type | Method and Description |
---|---|
ApricornType |
getApricorn()
Gets the apricorn type
|
net.minecraft.world.World |
getLevel()
Gets the world they're in
|
net.minecraft.util.math.BlockPos |
getPos()
Gets the block position
|
net.minecraft.block.BlockState |
getState()
The state being modified
|
protected ApricornEvent(net.minecraft.world.World level, net.minecraft.block.BlockState state, ApricornType apricorn, net.minecraft.util.math.BlockPos pos)
public net.minecraft.world.World getLevel()
public net.minecraft.block.BlockState getState()
public ApricornType getApricorn()
public net.minecraft.util.math.BlockPos getPos()