net.minecraft.world.level.block.grower

public final class TreeGrower

diw
net.minecraft.world.level.block.grower.TreeGrower
net.minecraft.class_8813
net.minecraft.block.SaplingGenerator
net.minecraft.src.C_301929_
net.minecraft.world.level.block.grower.WorldGenTreeProvider

Field summary

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

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(auv arg0, boolean arg1)
getConfiguredFeature(RandomSource arg0, boolean arg1)
method_54087(class_5819 arg0, boolean arg1)
getSmallTreeFeature(Random random, boolean flowersNearby)
m_307922_(C_212974_ p_311061_, boolean arg1)
private ResourceKey<ConfiguredFeature<?, ?>>
a(auv arg0)
getConfiguredMegaFeature(RandomSource arg0)
method_54086(class_5819 arg0)
getMegaTreeFeature(Random random)
m_304937_(C_212974_ arg0)
public boolean
a(and arg0, dle arg1, hx arg2, djh arg3, auv 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)
m_307294_(C_12_ p_311976_, C_2118_ p_310327_, C_4675_ p_312382_, C_2064_ p_309951_, C_212974_ arg4)
private static boolean
a(djh arg0, csv arg1, hx 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)
m_305963_(C_2064_ p_310256_, C_1559_ p_311754_, C_4675_ p_312442_, int p_310725_, int p_310118_)
private boolean
a(ctq arg0, hx arg1)
hasFlowers(LevelAccessor arg0, BlockPos arg1)
method_54088(class_1936 arg0, class_2338 arg1)
areFlowersNearby(WorldAccess world, BlockPos pos)
m_306742_(C_1598_ p_312326_, C_4675_ arg1)