Class WorldUpdateListener

java.lang.Object
etithespirit.orimod.common.tile.WorldUpdateListener

public final class WorldUpdateListener extends Object
This interface mandates that the block entity implementing it receives notifications of the world changing.
  • 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 change
      oldBlock - The block that was there before
      newBlock - 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

      public static void connect(boolean before, WorldUpdateListener.IBlockUpdatePacket callback)
    • disconnect

      public static void disconnect(boolean before, WorldUpdateListener.IBlockUpdatePacket callback)