类 CherryFoliagePlacer
java.lang.Object
net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer
net.minecraft.world.level.levelgen.feature.foliageplacers.CherryFoliagePlacer
-
嵌套类概要
从类继承的嵌套类/接口 net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer
FoliagePlacer.FoliageAttachment, FoliagePlacer.FoliageSetter
-
字段概要
字段修饰符和类型字段说明static final com.mojang.serialization.Codec<CherryFoliagePlacer>
private final float
private final float
private final float
private final IntProvider
private final float
从类继承的字段 net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer
offset, radius
-
构造器概要
构造器构造器说明CherryFoliagePlacer
(IntProvider p_272646_, IntProvider p_272802_, IntProvider p_273604_, float p_272737_, float p_273720_, float p_273152_, float p_273529_) -
方法概要
修饰符和类型方法说明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
-
height
-
wideBottomLayerHoleChance
private final float wideBottomLayerHoleChance -
cornerHoleChance
private final float cornerHoleChance -
hangingLeavesChance
private final float hangingLeavesChance -
hangingLeavesExtensionChance
private final float hangingLeavesExtensionChance
-
-
构造器详细资料
-
CherryFoliagePlacer
public CherryFoliagePlacer(IntProvider p_272646_, IntProvider p_272802_, IntProvider p_273604_, float p_272737_, float p_273720_, float p_273152_, float p_273529_)
-
-
方法详细资料
-
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
-