Class BlockEntityMoveStrategies

java.lang.Object
appeng.api.movable.BlockEntityMoveStrategies

@ThreadSafe public final class BlockEntityMoveStrategies extends Object

To blacklist blocks or block entities from being moved in and out of spatial storage, see the blacklist tag for blocks.

  • Constructor Details

    • BlockEntityMoveStrategies

      public BlockEntityMoveStrategies()
  • Method Details

    • add

      public static void add(IBlockEntityMoveStrategy strategy)
      Adds a custom strategy for moving certain block entities.
      Parameters:
      strategy - The strategy to add.
    • get

      public static IBlockEntityMoveStrategy get(net.minecraft.world.level.block.entity.BlockEntity blockEntity)
      Retrieves the strategy for moving the given block entity to a different location.
      Returns:
      The strategy for moving the given block entity. If no custom strategy was registered, the default strategy will be returned.
    • getDefault

      public static IBlockEntityMoveStrategy getDefault()
      Returns:
      The default handler for moving block entities.