net.minecraft.world.level.levelgen.feature

public class TreeFeature

extends Feature<TreeConfiguration>

cug
net.minecraft.world.level.levelgen.feature.TreeFeature
net.minecraft.class_2944
net.minecraft.world.gen.feature.TreeFeature
net.minecraft.src.C_2309_
net.minecraft.world.level.levelgen.feature.WorldGenTrees

Field summary

Modifier and TypeField
private static final int
a
BLOCK_UPDATE_FLAGS
field_31519
FORCE_STATE_AND_NOTIFY_ALL
f_160509_

Constructor summary

ModifierConstructor
public (com.mojang.serialization.Codec<TreeConfiguration> arg0)

Method summary

Modifier and TypeMethod
public static boolean
c(bww arg0, gg arg1)
isFree(LevelSimulatedReader arg0, BlockPos arg1)
method_16432(class_3746 arg0, class_2338 arg1)
canTreeReplace(TestableWorld world, BlockPos pos)
m_67262_(C_1604_ p_67263_, C_4675_ p_67264_)
private static boolean
f(bww arg0, gg arg1)
isVine(LevelSimulatedReader arg0, BlockPos arg1)
method_16416(class_3746 arg0, class_2338 arg1)
isVine(TestableWorld world, BlockPos pos)
m_67277_(C_1604_ p_67278_, C_4675_ p_67279_)
private static boolean
g(bww arg0, gg arg1)
isBlockWater(LevelSimulatedReader arg0, BlockPos arg1)
method_16422(class_3746 arg0, class_2338 arg1)
isWater(TestableWorld world, BlockPos pos)
m_67282_(C_1604_ p_67283_, C_4675_ p_67284_)
public static boolean
d(bww arg0, gg arg1)
isAirOrLeaves(LevelSimulatedReader arg0, BlockPos arg1)
method_16420(class_3746 arg0, class_2338 arg1)
isAirOrLeaves(TestableWorld world, BlockPos pos)
m_67267_(C_1604_ p_67268_, C_4675_ p_67269_)
private static boolean
h(bww arg0, gg arg1)
isReplaceablePlant(LevelSimulatedReader arg0, BlockPos arg1)
method_16425(class_3746 arg0, class_2338 arg1)
isReplaceablePlant(TestableWorld world, BlockPos pos)
m_67288_(C_1604_ p_67289_, C_4675_ p_67290_)
private static void
b(bwy arg0, gg arg1, ckt arg2)
setBlockKnownShape(LevelWriter arg0, BlockPos arg1, BlockState arg2)
method_12774(class_1945 arg0, class_2338 arg1, class_2680 arg2)
setBlockStateWithoutUpdatingNeighbors(ModifiableWorld world, BlockPos pos, BlockState state)
m_67256_(C_1606_ p_67257_, C_4675_ p_67258_, C_2064_ p_67259_)
public static boolean
e(bww arg0, gg arg1)
validTreePos(LevelSimulatedReader arg0, BlockPos arg1)
method_27371(class_3746 arg0, class_2338 arg1)
canReplace(TestableWorld world, BlockPos pos)
m_67272_(C_1604_ p_67273_, C_4675_ p_67274_)
private boolean
a(bxl arg0, Random arg1, gg arg2, BiConsumer<gg, ckt> arg3, BiConsumer<gg, ckt> arg4, cwn arg5)
doPlace(WorldGenLevel arg0, Random arg1, BlockPos arg2, BiConsumer<BlockPos, BlockState> arg3, BiConsumer<BlockPos, BlockState> arg4, TreeConfiguration arg5)
method_12775(class_5281 arg0, Random arg1, class_2338 arg2, BiConsumer<class_2338, class_2680> arg3, BiConsumer<class_2338, class_2680> arg4, class_4643 arg5)
generate(StructureWorldAccess world, Random random, BlockPos pos, BiConsumer<BlockPos, BlockState> trunkReplacer, BiConsumer<BlockPos, BlockState> foliageReplacer, TreeFeatureConfig config)
m_160510_(C_1625_ p_160512_, Random p_160513_, C_4675_ p_160514_, BiConsumer<C_4675_, C_2064_> p_160515_, BiConsumer<C_4675_, C_2064_> p_160516_, C_2366_ arg5)
private int
a(bww arg0, int arg1, gg arg2, cwn arg3)
getMaxFreeTreeHeight(LevelSimulatedReader arg0, int arg1, BlockPos arg2, TreeConfiguration arg3)
method_29963(class_3746 arg0, int arg1, class_2338 arg2, class_4643 arg3)
getTopPosition(TestableWorld world, int height, BlockPos pos, TreeFeatureConfig config)
m_67215_(C_1604_ p_67217_, int p_67218_, C_4675_ p_67219_, C_2366_ arg3)
protected void
a(bwy arg0, gg arg1, ckt arg2)
setBlock(LevelWriter arg0, BlockPos arg1, BlockState arg2)
method_13153(class_1945 arg0, class_2338 arg1, class_2680 arg2)
setBlockState(ModifiableWorld arg0, BlockPos arg1, BlockState arg2)
m_5974_(C_1606_ p_67222_, C_4675_ p_67223_, C_2064_ arg2)
public final boolean
a(csh<cwn> arg0)
place(FeaturePlaceContext<TreeConfiguration> arg0)
method_13151(class_5821<class_4643> arg0)
generate(FeatureContext<TreeFeatureConfig> arg0)
m_142674_(C_141361_<C_2366_> arg0)
generate(FeaturePlaceContext<WorldGenFeatureTreeConfiguration> arg0)
private static DiscreteVoxelShape
a(bwr arg0, dar arg1, Set<gg> arg2, Set<gg> arg3)
updateLeaves(LevelAccessor arg0, BoundingBox arg1, Set<BlockPos> arg2, Set<BlockPos> arg3)
method_23380(class_1936 arg0, class_3341 arg1, Set<class_2338> arg2, Set<class_2338> arg3)
placeLogsAndLeaves(WorldAccess world, BlockBox box, Set<BlockPos> trunkPositions, Set<BlockPos> decorationPositions)
m_67202_(C_1598_ p_67203_, C_2478_ p_67204_, Set<C_4675_> p_67205_, Set<C_4675_> p_67206_)