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
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
    set how the blocks/particles will be chosen inside a layer
  • Constructor Summary

    Constructors
    Constructor
    Description
    LayerPlacer(int placedBlocks, LayerPlacer.PlacingType type)
     
     
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
    net.minecraft.block.BlockState
    get(net.minecraft.block.BlockState[] states, net.minecraft.util.math.BlockPos pos)
     
    boolean
    place(net.minecraft.world.StructureWorldAccess worldAccess, List<net.minecraft.block.BlockState> states, net.minecraft.util.math.BlockPos pos)
     
    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.
    boolean
    place(net.minecraft.world.StructureWorldAccess worldAccess, net.minecraft.block.BlockState[] states, net.minecraft.util.math.BlockPos pos)
     
    boolean
    place(net.minecraft.world.StructureWorldAccess worldAccess, net.minecraft.block.BlockState[] states, net.minecraft.util.math.BlockPos pos, StructurePlacementRuleManager ruler)
     

    Methods inherited from class java.lang.Object

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

  • Method Details

    • 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)