Package net.minecraftforge.event.world
Class BlockEvent
- java.lang.Object
-
- net.minecraftforge.eventbus.api.Event
-
- net.minecraftforge.event.world.BlockEvent
-
- Direct Known Subclasses:
BlockEvent.BlockToolInteractEvent
,BlockEvent.BreakEvent
,BlockEvent.CropGrowEvent
,BlockEvent.EntityPlaceEvent
,BlockEvent.FarmlandTrampleEvent
,BlockEvent.FluidPlaceBlockEvent
,BlockEvent.NeighborNotifyEvent
,BlockEvent.PortalSpawnEvent
,NoteBlockEvent
,PistonEvent
public class BlockEvent extends net.minecraftforge.eventbus.api.Event
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BlockEvent.BlockToolInteractEvent
Fired when when this block is right clicked by a tool to change its state.static class
BlockEvent.BreakEvent
Event that is fired when an Block is about to be broken by a player Canceling this event will prevent the Block from being broken.static class
BlockEvent.CreateFluidSourceEvent
Fired to check whether a non-source block can turn into a source block.static class
BlockEvent.CropGrowEvent
Fired when a crop block grows.static class
BlockEvent.EntityMultiPlaceEvent
Fired when a single block placement triggers the creation of multiple blocks(e.g.static class
BlockEvent.EntityPlaceEvent
Called when a block is placed.static class
BlockEvent.FarmlandTrampleEvent
Fired when when farmland gets trampled This event isCancelable
static class
BlockEvent.FluidPlaceBlockEvent
Fired when a liquid places a block.static class
BlockEvent.NeighborNotifyEvent
Fired when a physics update occurs on a block.static class
BlockEvent.PortalSpawnEvent
-
Constructor Summary
Constructors Constructor Description BlockEvent(IWorld world, BlockPos pos, BlockState state)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BlockPos
getPos()
BlockState
getState()
IWorld
getWorld()
-
-
-
Field Detail
-
DEBUG
private static final boolean DEBUG
-
world
private final IWorld world
-
pos
private final BlockPos pos
-
state
private final BlockState state
-
-
Constructor Detail
-
BlockEvent
public BlockEvent(IWorld world, BlockPos pos, BlockState state)
-
-
Method Detail
-
getWorld
public IWorld getWorld()
-
getPos
public BlockPos getPos()
-
getState
public BlockState getState()
-
-