Class StructurePlacementUtils

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

public class StructurePlacementUtils extends Object
Utility methods related to structure placement.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 in
      blueprint - the structures blueprint
      pos - coordinates
      rotation - the rotation.
      mirror - the mirror used.
      fancyPlacement - if fancy or complete.
      player - the placing player.