Package appeng.api.movable
Class BlockEntityMoveStrategies
java.lang.Object
appeng.api.movable.BlockEntityMoveStrategies
To blacklist blocks or block entities from being moved in and out of spatial storage, see
the blacklist tag for blocks
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
add
(IBlockEntityMoveStrategy strategy) Adds a custom strategy for moving certain block entities.static IBlockEntityMoveStrategy
get
(net.minecraft.world.level.block.entity.BlockEntity blockEntity) Retrieves the strategy for moving the given block entity to a different location.static IBlockEntityMoveStrategy
-
Constructor Details
-
BlockEntityMoveStrategies
public BlockEntityMoveStrategies()
-
-
Method Details
-
add
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
, thedefault strategy
will be returned.
-
getDefault
- Returns:
- The default handler for moving block entities.
-