public class TumblestoneBlockEvent
extends net.minecraftforge.eventbus.api.Event
Modifier and Type | Class and Description |
---|---|
static class |
TumblestoneBlockEvent.PostBlockBroke
Fires after the block drops the items after broken
|
static class |
TumblestoneBlockEvent.PostBlockDestroy
Fired after the destroy happens (when the tumblestone block receives damage from a player)
|
static class |
TumblestoneBlockEvent.PostCooldownEnd
Fires after the block takes a chance at returning to the "base" state after being broken and dropping items
Cancelling prevents the block from returning to the base state
|
static class |
TumblestoneBlockEvent.PostGrow
Fired in the random tick before the tumblestone attempts to increase in age (grow)
Cancelling will prevent it from attempting to grow
|
static class |
TumblestoneBlockEvent.PreBlockBroke
Fires before the block drops the items after broken
Cancelling prevents the drops
|
static class |
TumblestoneBlockEvent.PreBlockDestroy
Fired before the destroy happens
Cancelling will prevent the destroy (when the tumblestone block receives damage from a player)
|
static class |
TumblestoneBlockEvent.PreCooldownEnd
Fires before the block takes a chance at returning to the "base" state after being broken and dropping items
Cancelling prevents the block from returning to the base state
|
static class |
TumblestoneBlockEvent.PreGrow
Fired in the random tick before the tumblestone attempts to increase in age (grow)
Cancelling will prevent it from attempting to grow
|
Modifier | Constructor and Description |
---|---|
protected |
TumblestoneBlockEvent(net.minecraft.world.World level,
net.minecraft.block.BlockState state,
net.minecraft.util.math.BlockPos pos)
Basic constructor
|
Modifier and Type | Method and Description |
---|---|
net.minecraft.util.math.BlockPos |
getPos()
Gets the position of the block
|
net.minecraft.block.BlockState |
getState()
Gets the state of the block
|
net.minecraft.world.World |
getWorld()
Gets the world this occurred in
|
protected TumblestoneBlockEvent(net.minecraft.world.World level, net.minecraft.block.BlockState state, net.minecraft.util.math.BlockPos pos)
level
- The worldstate
- The block statepos
- The position of the tumblestonepublic net.minecraft.world.World getWorld()
public net.minecraft.block.BlockState getState()
public net.minecraft.util.math.BlockPos getPos()