Class StructurePlacementUtils
java.lang.Object
com.ldtteam.structurize.placement.StructurePlacementUtils
Utility methods related to structure placement.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidloadAndPlaceStructureWithRotation(net.minecraft.world.level.Level worldObj, Blueprint blueprint, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.Rotation rotation, net.minecraft.world.level.block.Mirror mirror, boolean fancyPlacement, net.minecraft.server.level.ServerPlayer player) Load a structure into this world and place it in the right position and rotation.static voidunloadStructure(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos startPos, Blueprint blueprint, net.minecraft.world.level.block.Rotation rotation, net.minecraft.world.level.block.Mirror mirror) Unload a structure at a certain location.
-
Constructor Details
-
StructurePlacementUtils
public StructurePlacementUtils()
-
-
Method Details
-
unloadStructure
public static void unloadStructure(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos startPos, Blueprint blueprint, net.minecraft.world.level.block.Rotation rotation, net.minecraft.world.level.block.Mirror mirror) Unload a structure at a certain location.- Parameters:
world- the world.startPos- the position.blueprint- the blueprint.rotation- the rotation.mirror- the mirror.
-
loadAndPlaceStructureWithRotation
public static void loadAndPlaceStructureWithRotation(net.minecraft.world.level.Level worldObj, Blueprint blueprint, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.Rotation rotation, net.minecraft.world.level.block.Mirror mirror, boolean fancyPlacement, net.minecraft.server.level.ServerPlayer player) Load a structure into this world and place it in the right position and rotation.- Parameters:
worldObj- the world to load it inblueprint- the structures blueprintpos- coordinatesrotation- the rotation.mirror- the mirror used.fancyPlacement- if fancy or complete.player- the placing player.
-