类 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.Codec<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 pLevel, FoliagePlacer.FoliageSetter pBlockSetter, RandomSource pRandom, TreeConfiguration pConfig, int pMaxFreeTreeHeight, FoliagePlacer.FoliageAttachment pAttachment, int pFoliageHeight, int pFoliageRadius, int pOffset) int
foliageHeight
(RandomSource pRandom, int pHeight, TreeConfiguration pConfig) protected boolean
shouldSkipLocation
(RandomSource pRandom, int pLocalX, int pLocalY, int pLocalZ, int pRange, boolean pLarge) 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 pLevel, FoliagePlacer.FoliageSetter pBlockSetter, RandomSource pRandom, TreeConfiguration pConfig, int pMaxFreeTreeHeight, FoliagePlacer.FoliageAttachment pAttachment, int pFoliageHeight, int pFoliageRadius, int pOffset) - 指定者:
createFoliage
在类中FoliagePlacer
-
foliageHeight
- 指定者:
foliageHeight
在类中FoliagePlacer
-
shouldSkipLocation
protected boolean shouldSkipLocation(RandomSource pRandom, int pLocalX, int pLocalY, int pLocalZ, int pRange, boolean pLarge) - 指定者:
shouldSkipLocation
在类中FoliagePlacer
-