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) Deprecated, for removal: This API element is subject to removal in a future version.LayerPlacer(int placedBlocks, LayerPlacer.PlacingType type, net.minecraft.util.math.random.Random random) Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.LayerPlacer(LayerPlacer.PlacingType type, net.minecraft.util.math.random.Random random) Deprecated, for removal: This API element is subject to removal in a future version.LayerPlacer(LayerPlacer.PlacingType type, FastNoiseLite noise) Deprecated, for removal: This API element is subject to removal in a future version. -
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) static LayerPlacerstatic LayerPlacerof2DNoise(FastNoiseLite noise) static LayerPlacerstatic LayerPlacerof3DNoise(FastNoiseLite noise) static LayerPlacerofOrder()static LayerPlacerofRandom()static LayerPlacerofRandom(net.minecraft.util.math.random.Random random) 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) voidsetNoise(FastNoiseLite noise) voidsetRandom(net.minecraft.util.math.random.Random random)
-
Constructor Details
-
LayerPlacer
Deprecated, for removal: This API element is subject to removal in a future version.use factory methodsofRandom() -
LayerPlacer
Deprecated, for removal: This API element is subject to removal in a future version.use factory methodsofRandom() -
LayerPlacer
Deprecated, for removal: This API element is subject to removal in a future version.use factory methodsofRandom() -
LayerPlacer
@Deprecated(forRemoval=true) public LayerPlacer(int placedBlocks, LayerPlacer.PlacingType type, net.minecraft.util.math.random.Random random) Deprecated, for removal: This API element is subject to removal in a future version.use factory methodsofRandom() -
LayerPlacer
@Deprecated(forRemoval=true) public LayerPlacer(LayerPlacer.PlacingType type, net.minecraft.util.math.random.Random random) Deprecated, for removal: This API element is subject to removal in a future version.use factory methodsofRandom() -
LayerPlacer
public LayerPlacer()
-
-
Method Details
-
ofRandom
-
ofRandom
-
of3DNoise
-
of3DNoise
-
of2DNoise
-
of2DNoise
-
ofOrder
-
setNoise
-
setRandom
public void setRandom(net.minecraft.util.math.random.Random random) -
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)
-