Class StructurePlacementUtils

java.lang.Object
com.ldtteam.structurize.placement.StructurePlacementUtils

public class StructurePlacementUtils extends Object
Utility methods related to structure placement.
  • 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, RotationMirror rotMir)
      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, RotationMirror rotMir, 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 in
      blueprint - the structures blueprint
      pos - coordinates
      rotMir - the rotation and the mirror used.
      fancyPlacement - if fancy or complete.
      player - the placing player.