Interface ISpecialCreativeHandlerAnchorBlock
public interface ISpecialCreativeHandlerAnchorBlock
Special creative placement handler anchors.
-
Method Summary
Modifier and TypeMethodDescriptiongetStructureHandler(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, Blueprint blueprint, PlacementSettings settings, boolean fancyPlacement) Get the special structure handler.booleansetup(net.minecraft.server.level.ServerPlayer player, net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, Blueprint blueprint, PlacementSettings settings, boolean fancyPlacement, String pack, String path) Pre-setup before running the placement.
-
Method Details
-
getStructureHandler
AbstractStructureHandler getStructureHandler(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, Blueprint blueprint, PlacementSettings settings, boolean fancyPlacement) Get the special structure handler. -
setup
boolean setup(net.minecraft.server.level.ServerPlayer player, net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, Blueprint blueprint, PlacementSettings settings, boolean fancyPlacement, String pack, String path) Pre-setup before running the placement.- Parameters:
player- the player attempting the placement.world- the world to run it for.pos- the pos to run it at.blueprint- the matching blueprint.settings- the settings (mirror and rotation).fancyPlacement- if constructed or creativepack- the pack name.path- the path within the pack.- Returns:
- true if successful.
-