Class LayerPlacer
java.lang.Object
net.rodofire.easierworldcreator.shape.block.placer.LayerPlacer
Class to define how the
BlockState inside a BlockLayer should be placed depending on LayerPlacer.PlacingType-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumset how the blocks/particles will be chosen inside a layer -
Constructor Summary
ConstructorsConstructorDescriptionLayerPlacer(int placedBlocks, LayerPlacer.PlacingType type) LayerPlacer(LayerPlacer.PlacingType type, FastNoiseLite noise) -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.block.BlockStateUsed to get the blocksState notably used during this.getWorld() gen, this doesn't place anything.net.minecraft.block.BlockStateget(net.minecraft.block.BlockState[] states, net.minecraft.util.math.BlockPos pos) booleanplace(net.minecraft.world.StructureWorldAccess worldAccess, List<net.minecraft.block.BlockState> states, net.minecraft.util.math.BlockPos pos) booleanplace(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.booleanplace(net.minecraft.world.StructureWorldAccess worldAccess, net.minecraft.block.BlockState[] states, net.minecraft.util.math.BlockPos pos) booleanplace(net.minecraft.world.StructureWorldAccess worldAccess, net.minecraft.block.BlockState[] states, net.minecraft.util.math.BlockPos pos, StructurePlacementRuleManager ruler)
-
Constructor Details
-
LayerPlacer
-
LayerPlacer
-
LayerPlacer
-
-
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 chosenpos- 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 chosenpos- 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)
-