Class StructureUtil

java.lang.Object
net.rodofire.easierworldcreator.structure.StructureUtil

public class StructureUtil extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static List<BlockList>
    convertNbtToBlockList(net.minecraft.world.StructureWorldAccess world, net.minecraft.util.Identifier templateName)
    This method is used to get every block in a structure.
    static void
    place(net.minecraft.world.StructureWorldAccess world, List<BlockList> blockLists, net.minecraft.util.math.BlockPos block, boolean force, List<net.minecraft.block.Block> blockToForce, List<net.minecraft.block.Block> blockToSkip, float integrity)
     
    static void
    place(net.minecraft.world.StructureWorldAccess world, net.minecraft.util.Identifier templateName, float integrity, net.minecraft.util.math.BlockPos pos, net.minecraft.util.math.BlockPos offset, net.minecraft.util.BlockMirror mirror, net.minecraft.util.BlockRotation rotation, boolean ignoreEntities)
    this method allows you to place a structure in the world during world gen or not
    static void
    place(net.minecraft.world.StructureWorldAccess world, net.minecraft.util.Identifier templateName, float integrity, net.minecraft.util.math.ChunkPos chunk)
     
    static void
    place(net.minecraft.world.StructureWorldAccess world, net.minecraft.util.Identifier templateName, float integrity, net.minecraft.world.chunk.Chunk chunk)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • StructureUtil

      public StructureUtil()
  • Method Details

    • convertNbtToBlockList

      public static List<BlockList> convertNbtToBlockList(net.minecraft.world.StructureWorldAccess world, net.minecraft.util.Identifier templateName)
      This method is used to get every block in a structure.
      Parameters:
      world -
      templateName -
      Returns:
    • place

      public static void place(net.minecraft.world.StructureWorldAccess world, List<BlockList> blockLists, net.minecraft.util.math.BlockPos block, boolean force, List<net.minecraft.block.Block> blockToForce, List<net.minecraft.block.Block> blockToSkip, float integrity)
    • place

      public static void place(net.minecraft.world.StructureWorldAccess world, net.minecraft.util.Identifier templateName, float integrity, net.minecraft.world.chunk.Chunk chunk)
    • place

      public static void place(net.minecraft.world.StructureWorldAccess world, net.minecraft.util.Identifier templateName, float integrity, net.minecraft.util.math.ChunkPos chunk)
    • place

      public static void place(net.minecraft.world.StructureWorldAccess world, net.minecraft.util.Identifier templateName, float integrity, net.minecraft.util.math.BlockPos pos, net.minecraft.util.math.BlockPos offset, net.minecraft.util.BlockMirror mirror, net.minecraft.util.BlockRotation rotation, boolean ignoreEntities)
      this method allows you to place a structure in the world during world gen or not
      Parameters:
      world - the world the structure will spawn in
      templateName - the identifier of the structure
      integrity - the integrity of the structure must be between 0f and 1f
      pos - the pos of the structure
      offset - the offset of the pos structure
      mirror - the block mirror if wanted
      rotation - the structure rotation if wanted
      ignoreEntities - ignore entities of the structure