net.minecraft.world.level.block.grower

public final class TreeGrower

dxk
net.minecraft.world.level.block.grower.TreeGrower
net.minecraft.class_8813
net.minecraft.block.SaplingGenerator
net.minecraft.world.level.block.grower.WorldGenTreeProvider

Field summary

Modifier and TypeField
private static final Map<String, TreeGrower>
l
GROWERS
field_46520
GENERATORS
public static final com.mojang.serialization.Codec<TreeGrower>
a
CODEC
field_46510
CODEC
public static final TreeGrower
b
OAK
field_46511
OAK
public static final TreeGrower
c
SPRUCE
field_46512
SPRUCE
public static final TreeGrower
d
MANGROVE
field_46513
MANGROVE
public static final TreeGrower
e
AZALEA
field_46514
AZALEA
public static final TreeGrower
f
BIRCH
field_46515
BIRCH
public static final TreeGrower
g
JUNGLE
field_46516
JUNGLE
public static final TreeGrower
h
ACACIA
field_46517
ACACIA
public static final TreeGrower
i
CHERRY
field_46518
CHERRY
public static final TreeGrower
j
DARK_OAK
field_46519
DARK_OAK
public static final TreeGrower
k
PALE_OAK
field_54791
PALE_OAK
private final String
m
name
field_46521
id
private final float
n
secondaryChance
field_46522
rareChance
private final Optional<ResourceKey<ConfiguredFeature<?, ?>>>
o
megaTree
field_46523
megaVariant
private final Optional<ResourceKey<ConfiguredFeature<?, ?>>>
p
secondaryMegaTree
field_46524
rareMegaVariant
private final Optional<ResourceKey<ConfiguredFeature<?, ?>>>
q
tree
field_46525
regularVariant
private final Optional<ResourceKey<ConfiguredFeature<?, ?>>>
r
secondaryTree
field_46526
rareRegularVariant
private final Optional<ResourceKey<ConfiguredFeature<?, ?>>>
s
flowers
field_46527
beesVariant
private final Optional<ResourceKey<ConfiguredFeature<?, ?>>>
t
secondaryFlowers
field_46528
rareBeesVariant

Constructor summary

ModifierConstructor
public (String id, Optional<ResourceKey<ConfiguredFeature<?, ?>>> megaVariant, Optional<ResourceKey<ConfiguredFeature<?, ?>>> regularVariant, Optional<ResourceKey<ConfiguredFeature<?, ?>>> beesVariant)
public (String id, float rareChance, Optional<ResourceKey<ConfiguredFeature<?, ?>>> megaVariant, Optional<ResourceKey<ConfiguredFeature<?, ?>>> rareMegaVariant, Optional<ResourceKey<ConfiguredFeature<?, ?>>> regularVariant, Optional<ResourceKey<ConfiguredFeature<?, ?>>> rareRegularVariant, Optional<ResourceKey<ConfiguredFeature<?, ?>>> beesVariant, Optional<ResourceKey<ConfiguredFeature<?, ?>>> rareBeesVariant)

Method summary

Modifier and TypeMethod
private ResourceKey<ConfiguredFeature<?, ?>>
a(bam arg0, boolean arg1)
getConfiguredFeature(RandomSource arg0, boolean arg1)
method_54087(class_5819 arg0, boolean arg1)
getSmallTreeFeature(Random random, boolean flowersNearby)
private ResourceKey<ConfiguredFeature<?, ?>>
a(bam arg0)
getConfiguredMegaFeature(RandomSource arg0)
method_54086(class_5819 arg0)
getMegaTreeFeature(Random random)
public boolean
a(ash arg0, dzr arg1, jh arg2, dxv arg3, bam arg4)
growTree(ServerLevel arg0, ChunkGenerator arg1, BlockPos arg2, BlockState arg3, RandomSource arg4)
method_54085(class_3218 arg0, class_2794 arg1, class_2338 arg2, class_2680 arg3, class_5819 arg4)
generate(ServerWorld world, ChunkGenerator chunkGenerator, BlockPos pos, BlockState state, Random random)
private static boolean
a(dxv arg0, dgn arg1, jh arg2, int arg3, int arg4)
isTwoByTwoSapling(BlockState arg0, BlockGetter arg1, BlockPos arg2, int arg3, int arg4)
method_54090(class_2680 arg0, class_1922 arg1, class_2338 arg2, int arg3, int arg4)
canGenerateLargeTree(BlockState state, BlockView world, BlockPos pos, int x, int z)
private boolean
a(dhj arg0, jh arg1)
hasFlowers(LevelAccessor arg0, BlockPos arg1)
method_54088(class_1936 arg0, class_2338 arg1)
areFlowersNearby(WorldAccess world, BlockPos pos)