public static interface ChunkListener.IBlockListenerCallback extends ChunkCallbackRegistry.IChunkCallback<java.lang.Void>
ICallback for ChunkCallbackRegistry.ICallback.CallbackOption<P extends ICallback.ICallbackPredicate>, ICallback.ICallbackPredicate, ICallback.Priority| Modifier and Type | Method and Description |
|---|---|
boolean |
call(net.minecraft.world.chunk.Chunk chunk,
net.minecraft.util.math.BlockPos listener,
net.minecraft.util.math.BlockPos modified,
net.minecraft.block.state.IBlockState oldState,
net.minecraft.block.state.IBlockState newState)
If this
ChunkListener.IBlockListenerCallback was registered with
MalisisRegistry#onPreSetBlock(net.malisis.core.registry.SetBlockCallbackRegistry.ISetBlockCallback, CallbackOption),
returns whether to cancel the block placement or not. |
default CallbackResult<java.lang.Void> |
call(net.minecraft.world.chunk.Chunk chunk,
net.minecraft.util.math.BlockPos listener,
java.lang.Object... params) |
calldefault CallbackResult<java.lang.Void> call(net.minecraft.world.chunk.Chunk chunk, net.minecraft.util.math.BlockPos listener, java.lang.Object... params)
call in interface ChunkCallbackRegistry.IChunkCallback<java.lang.Void>boolean call(net.minecraft.world.chunk.Chunk chunk,
net.minecraft.util.math.BlockPos listener,
net.minecraft.util.math.BlockPos modified,
net.minecraft.block.state.IBlockState oldState,
net.minecraft.block.state.IBlockState newState)
ChunkListener.IBlockListenerCallback was registered with
MalisisRegistry#onPreSetBlock(net.malisis.core.registry.SetBlockCallbackRegistry.ISetBlockCallback, CallbackOption),
returns whether to cancel the block placement or not.chunk - the chunklistener - the listenermodified - the modifiedoldState - the old statenewState - the new state