类 RandomSpreadFoliagePlacer
java.lang.Object
net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer
net.minecraft.world.level.levelgen.feature.foliageplacers.RandomSpreadFoliagePlacer
-
嵌套类概要
从类继承的嵌套类/接口 net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer
FoliagePlacer.FoliageAttachment, FoliagePlacer.FoliageSetter
-
字段概要
字段修饰符和类型字段说明static final com.mojang.serialization.MapCodec
<RandomSpreadFoliagePlacer> private final IntProvider
private final int
从类继承的字段 net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer
offset, radius
-
构造器概要
构造器构造器说明RandomSpreadFoliagePlacer
(IntProvider p_161506_, IntProvider p_161507_, IntProvider p_161508_, int p_161509_) -
方法概要
修饰符和类型方法说明protected void
createFoliage
(LevelSimulatedReader p_225723_, FoliagePlacer.FoliageSetter p_272842_, RandomSource p_225725_, TreeConfiguration p_225726_, int p_225727_, FoliagePlacer.FoliageAttachment p_225728_, int p_225729_, int p_225730_, int p_225731_) int
foliageHeight
(RandomSource p_225719_, int p_225720_, TreeConfiguration p_225721_) protected boolean
shouldSkipLocation
(RandomSource p_225712_, int p_225713_, int p_225714_, int p_225715_, int p_225716_, boolean p_225717_) protected FoliagePlacerType
<?> type()
从类继承的方法 net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer
createFoliage, foliagePlacerParts, foliageRadius, placeLeavesRow, placeLeavesRowWithHangingLeavesBelow, shouldSkipLocationSigned, tryPlaceLeaf
-
字段详细资料
-
CODEC
-
foliageHeight
-
leafPlacementAttempts
private final int leafPlacementAttempts
-
-
构造器详细资料
-
RandomSpreadFoliagePlacer
public RandomSpreadFoliagePlacer(IntProvider p_161506_, IntProvider p_161507_, IntProvider p_161508_, int p_161509_)
-
-
方法详细资料
-
type
- 指定者:
type
在类中FoliagePlacer
-
createFoliage
protected void createFoliage(LevelSimulatedReader p_225723_, FoliagePlacer.FoliageSetter p_272842_, RandomSource p_225725_, TreeConfiguration p_225726_, int p_225727_, FoliagePlacer.FoliageAttachment p_225728_, int p_225729_, int p_225730_, int p_225731_) - 指定者:
createFoliage
在类中FoliagePlacer
-
foliageHeight
- 指定者:
foliageHeight
在类中FoliagePlacer
-
shouldSkipLocation
protected boolean shouldSkipLocation(RandomSource p_225712_, int p_225713_, int p_225714_, int p_225715_, int p_225716_, boolean p_225717_) - 指定者:
shouldSkipLocation
在类中FoliagePlacer
-