Package etithespirit.orimod.common.tile
Class WorldUpdateListener
java.lang.Object
etithespirit.orimod.common.tile.WorldUpdateListener
This interface mandates that the block entity implementing it receives notifications of the world changing.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic void
connect
(boolean before, WorldUpdateListener.IBlockUpdatePacket callback) static void
disconnect
(boolean before, WorldUpdateListener.IBlockUpdatePacket callback) static void
notifyOfUpdatingBlockChangeAfter
(net.minecraft.core.BlockPos at, net.minecraft.world.level.block.state.BlockState oldBlock, net.minecraft.world.level.block.state.BlockState newBlock) For internal use only.static void
notifyOfUpdatingBlockChangeBefore
(net.minecraft.core.BlockPos at, net.minecraft.world.level.block.state.BlockState oldBlock, net.minecraft.world.level.block.state.BlockState newBlock) For internal use only.
-
Method Details
-
notifyOfUpdatingBlockChangeBefore
public static void notifyOfUpdatingBlockChangeBefore(net.minecraft.core.BlockPos at, net.minecraft.world.level.block.state.BlockState oldBlock, net.minecraft.world.level.block.state.BlockState newBlock) For internal use only. Runs all callbacks set to run before execution of a block change.- Parameters:
at
- The location of the changeoldBlock
- The block that was there beforenewBlock
- The block that was there after
-
notifyOfUpdatingBlockChangeAfter
public static void notifyOfUpdatingBlockChangeAfter(net.minecraft.core.BlockPos at, net.minecraft.world.level.block.state.BlockState oldBlock, net.minecraft.world.level.block.state.BlockState newBlock) For internal use only. Runs all callbacks set to run after execution of a block change.- Parameters:
at
-oldBlock
-newBlock
-
-
connect
-
disconnect
-