java.lang.Object
net.rodofire.easierworldcreator.shape.block.placer.LayerPlacer

public class LayerPlacer extends Object
Class to define how the BlockState inside a BlockLayer should be placed depending on LayerPlacer.PlacingType
  • Constructor Details

  • Method Details

    • ofRandom

      public static LayerPlacer ofRandom()
    • ofRandom

      public static LayerPlacer ofRandom(net.minecraft.util.math.random.Random random)
    • of3DNoise

      public static LayerPlacer of3DNoise(FastNoiseLite noise)
    • of3DNoise

      public static LayerPlacer of3DNoise()
    • of2DNoise

      public static LayerPlacer of2DNoise(FastNoiseLite noise)
    • of2DNoise

      public static LayerPlacer of2DNoise()
    • ofOrder

      public static LayerPlacer ofOrder()
    • place

      public boolean place(net.minecraft.world.StructureWorldAccess worldAccess, List<net.minecraft.block.BlockState> states, net.minecraft.util.math.BlockPos pos)
    • place

      public boolean place(net.minecraft.world.StructureWorldAccess worldAccess, net.minecraft.block.BlockState[] states, net.minecraft.util.math.BlockPos pos)
    • place

      public boolean place(net.minecraft.world.StructureWorldAccess worldAccess, List<net.minecraft.block.BlockState> states, net.minecraft.util.math.BlockPos pos, StructurePlacementRuleManager ruler)
      Used to get the blocksState notably used during this.getWorld() gen, this doesn't place anything. Used for a precomputed BlockState list
      Parameters:
      states - the states that will be chosen
      pos - the pos of the block
      Returns:
      the BlockState related to the pos
    • place

      public boolean place(net.minecraft.world.StructureWorldAccess worldAccess, net.minecraft.block.BlockState[] states, net.minecraft.util.math.BlockPos pos, StructurePlacementRuleManager ruler)
    • get

      public net.minecraft.block.BlockState get(List<net.minecraft.block.BlockState> states, net.minecraft.util.math.BlockPos pos)
      Used to get the blocksState notably used during this.getWorld() gen, this doesn't place anything. Used for a precomputed BlockState list
      Parameters:
      states - the states that will be chosen
      pos - the pos of the block
      Returns:
      the BlockState related to the pos
    • get

      public net.minecraft.block.BlockState get(net.minecraft.block.BlockState[] states, net.minecraft.util.math.BlockPos pos)