Package net.minecraftforge.event.world
Class BlockEvent.CreateFluidSourceEvent
- java.lang.Object
-
- net.minecraftforge.eventbus.api.Event
-
- net.minecraftforge.event.world.BlockEvent.CreateFluidSourceEvent
-
- Enclosing class:
- BlockEvent
public static class BlockEvent.CreateFluidSourceEvent extends net.minecraftforge.eventbus.api.Event
Fired to check whether a non-source block can turn into a source block. A result of ALLOW causes a source block to be created even if the liquid usually doesn't do that (like lava), and a result of DENY prevents creation even if the liquid usually does do that (like water).
-
-
Field Summary
Fields Modifier and Type Field Description private BlockPos
pos
private BlockState
state
private IWorldReader
world
-
Constructor Summary
Constructors Constructor Description CreateFluidSourceEvent(IWorldReader world, BlockPos pos, BlockState state)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BlockPos
getPos()
BlockState
getState()
IWorldReader
getWorld()
-
-
-
Field Detail
-
world
private final IWorldReader world
-
pos
private final BlockPos pos
-
state
private final BlockState state
-
-
Constructor Detail
-
CreateFluidSourceEvent
public CreateFluidSourceEvent(IWorldReader world, BlockPos pos, BlockState state)
-
-
Method Detail
-
getWorld
public IWorldReader getWorld()
-
getPos
public BlockPos getPos()
-
getState
public BlockState getState()
-
-