Class CoilerFoliagePlacer
java.lang.Object
net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer
com.lightning.northstar.world.features.foliageplacers.CoilerFoliagePlacer
public class CoilerFoliagePlacer
extends net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer
net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer.FoliageAttachment, net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer.FoliageSetter -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<CoilerFoliagePlacer> Fields inherited from class net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer
offset, radius -
Constructor Summary
ConstructorsConstructorDescriptionCoilerFoliagePlacer(net.minecraft.util.valueproviders.IntProvider int1, net.minecraft.util.valueproviders.IntProvider int2) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcreateFoliage(net.minecraft.world.level.LevelSimulatedReader level, net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer.FoliageSetter blocksetter, net.minecraft.util.RandomSource pRandom, net.minecraft.world.level.levelgen.feature.configurations.TreeConfiguration pConfig, int int1, net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer.FoliageAttachment foliage, int int2, int int3, int int4) intfoliageHeight(net.minecraft.util.RandomSource pRandom, int p_225496_, net.minecraft.world.level.levelgen.feature.configurations.TreeConfiguration p_225497_) protected booleanshouldSkipLocation(net.minecraft.util.RandomSource pRandom, int p_225489_, int p_225490_, int p_225491_, int p_225492_, boolean p_225493_) Skips certain positions based on the provided shape, such as rounding corners randomly.protected net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacerType<?> type()Methods inherited from class net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer
createFoliage, foliagePlacerParts, foliageRadius, placeLeavesRow, placeLeavesRowWithHangingLeavesBelow, shouldSkipLocationSigned, tryPlaceLeaf
-
Field Details
-
CODEC
-
-
Constructor Details
-
CoilerFoliagePlacer
public CoilerFoliagePlacer(net.minecraft.util.valueproviders.IntProvider int1, net.minecraft.util.valueproviders.IntProvider int2)
-
-
Method Details
-
type
protected net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacerType<?> type()- Specified by:
typein classnet.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer
-
createFoliage
protected void createFoliage(net.minecraft.world.level.LevelSimulatedReader level, net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer.FoliageSetter blocksetter, net.minecraft.util.RandomSource pRandom, net.minecraft.world.level.levelgen.feature.configurations.TreeConfiguration pConfig, int int1, net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer.FoliageAttachment foliage, int int2, int int3, int int4) - Specified by:
createFoliagein classnet.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer
-
foliageHeight
public int foliageHeight(net.minecraft.util.RandomSource pRandom, int p_225496_, net.minecraft.world.level.levelgen.feature.configurations.TreeConfiguration p_225497_) - Specified by:
foliageHeightin classnet.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer
-
shouldSkipLocation
protected boolean shouldSkipLocation(net.minecraft.util.RandomSource pRandom, int p_225489_, int p_225490_, int p_225491_, int p_225492_, boolean p_225493_) Skips certain positions based on the provided shape, such as rounding corners randomly. The coordinates are passed in as absolute value, and should be within [0,range].- Specified by:
shouldSkipLocationin classnet.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer
-