Class BlobFoliagePlacer
- java.lang.Object
-
- net.minecraft.world.gen.foliageplacer.FoliagePlacer
-
- net.minecraft.world.gen.foliageplacer.BlobFoliagePlacer
-
- Direct Known Subclasses:
BushFoliagePlacer
,FancyFoliagePlacer
public class BlobFoliagePlacer extends FoliagePlacer
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.minecraft.world.gen.foliageplacer.FoliagePlacer
FoliagePlacer.Foliage
-
-
Field Summary
Fields Modifier and Type Field Description static com.mojang.serialization.Codec<BlobFoliagePlacer>
CODEC
protected int
height
-
Fields inherited from class net.minecraft.world.gen.foliageplacer.FoliagePlacer
offset, radius
-
-
Constructor Summary
Constructors Constructor Description BlobFoliagePlacer(FeatureSpread p_i241995_1_, FeatureSpread p_i241995_2_, int p_i241995_3_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static <P extends BlobFoliagePlacer>
com.mojang.datafixers.Products.P3<com.mojang.serialization.codecs.RecordCodecBuilder.Mu<P>,FeatureSpread,FeatureSpread,java.lang.Integer>blobParts(com.mojang.serialization.codecs.RecordCodecBuilder.Instance<P> p_236740_0_)
protected void
createFoliage(IWorldGenerationReader p_230372_1_, java.util.Random p_230372_2_, BaseTreeFeatureConfig p_230372_3_, int p_230372_4_, FoliagePlacer.Foliage p_230372_5_, int p_230372_6_, int p_230372_7_, java.util.Set<BlockPos> p_230372_8_, int p_230372_9_, MutableBoundingBox p_230372_10_)
int
foliageHeight(java.util.Random p_230374_1_, int p_230374_2_, BaseTreeFeatureConfig p_230374_3_)
protected boolean
shouldSkipLocation(java.util.Random p_230373_1_, int p_230373_2_, int p_230373_3_, int p_230373_4_, int p_230373_5_, boolean p_230373_6_)
protected FoliagePlacerType<?>
type()
-
Methods inherited from class net.minecraft.world.gen.foliageplacer.FoliagePlacer
createFoliage, foliagePlacerParts, foliageRadius, placeLeavesRow, shouldSkipLocationSigned
-
-
-
-
Field Detail
-
CODEC
public static final com.mojang.serialization.Codec<BlobFoliagePlacer> CODEC
-
height
protected final int height
-
-
Constructor Detail
-
BlobFoliagePlacer
public BlobFoliagePlacer(FeatureSpread p_i241995_1_, FeatureSpread p_i241995_2_, int p_i241995_3_)
-
-
Method Detail
-
blobParts
protected static <P extends BlobFoliagePlacer> com.mojang.datafixers.Products.P3<com.mojang.serialization.codecs.RecordCodecBuilder.Mu<P>,FeatureSpread,FeatureSpread,java.lang.Integer> blobParts(com.mojang.serialization.codecs.RecordCodecBuilder.Instance<P> p_236740_0_)
-
type
protected FoliagePlacerType<?> type()
- Specified by:
type
in classFoliagePlacer
-
createFoliage
protected void createFoliage(IWorldGenerationReader p_230372_1_, java.util.Random p_230372_2_, BaseTreeFeatureConfig p_230372_3_, int p_230372_4_, FoliagePlacer.Foliage p_230372_5_, int p_230372_6_, int p_230372_7_, java.util.Set<BlockPos> p_230372_8_, int p_230372_9_, MutableBoundingBox p_230372_10_)
- Specified by:
createFoliage
in classFoliagePlacer
-
foliageHeight
public int foliageHeight(java.util.Random p_230374_1_, int p_230374_2_, BaseTreeFeatureConfig p_230374_3_)
- Specified by:
foliageHeight
in classFoliagePlacer
-
shouldSkipLocation
protected boolean shouldSkipLocation(java.util.Random p_230373_1_, int p_230373_2_, int p_230373_3_, int p_230373_4_, int p_230373_5_, boolean p_230373_6_)
- Specified by:
shouldSkipLocation
in classFoliagePlacer
-
-