Class TreeFeature
java.lang.Object
net.minecraft.world.level.levelgen.feature.Feature<TreeConfiguration>
net.minecraft.world.level.levelgen.feature.TreeFeature
-
Field Summary
Fields inherited from class net.minecraft.world.level.levelgen.feature.Feature
BAMBOO, BASALT_COLUMNS, BASALT_PILLAR, BLOCK_COLUMN, BLOCK_PILE, BLUE_ICE, BONUS_CHEST, CHORUS_PLANT, CORAL_CLAW, CORAL_MUSHROOM, CORAL_TREE, DELTA_FEATURE, DESERT_WELL, DISK, DRIPSTONE_CLUSTER, END_GATEWAY, END_ISLAND, END_SPIKE, FILL_LAYER, FLOWER, FOREST_ROCK, FOSSIL, FREEZE_TOP_LAYER, GEODE, GLOWSTONE_BLOB, HUGE_BROWN_MUSHROOM, HUGE_FUNGUS, HUGE_RED_MUSHROOM, ICE_SPIKE, ICEBERG, KELP, LAKE, LARGE_DRIPSTONE, MONSTER_ROOM, MULTIFACE_GROWTH, NETHER_FOREST_VEGETATION, NO_BONEMEAL_FLOWER, NO_OP, ORE, POINTED_DRIPSTONE, RANDOM_BOOLEAN_SELECTOR, RANDOM_PATCH, RANDOM_SELECTOR, REPLACE_BLOBS, REPLACE_SINGLE_BLOCK, ROOT_SYSTEM, SCATTERED_ORE, SCULK_PATCH, SEA_PICKLE, SEAGRASS, SIMPLE_BLOCK, SIMPLE_RANDOM_SELECTOR, SPRING, TREE, TWISTING_VINES, UNDERWATER_MAGMA, VEGETATION_PATCH, VINES, VOID_START_PLATFORM, WATERLOGGED_VEGETATION_PATCH, WEEPING_VINES
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate boolean
doPlace
(WorldGenLevel p_225258_, RandomSource p_225259_, BlockPos p_225260_, BiConsumer<BlockPos, BlockState> p_225261_, BiConsumer<BlockPos, BlockState> p_225262_, BiConsumer<BlockPos, BlockState> p_225263_, TreeConfiguration p_225264_) private int
getMaxFreeTreeHeight
(LevelSimulatedReader p_67216_, int p_67217_, BlockPos p_67218_, TreeConfiguration p_67219_) static boolean
isAirOrLeaves
(LevelSimulatedReader p_67268_, BlockPos p_67269_) static boolean
isBlockWater
(LevelSimulatedReader p_67283_, BlockPos p_67284_) private static boolean
isReplaceablePlant
(LevelSimulatedReader p_67289_, BlockPos p_67290_) private static boolean
isVine
(LevelSimulatedReader p_67278_, BlockPos p_67279_) final boolean
place
(FeaturePlaceContext<TreeConfiguration> p_160530_) protected void
setBlock
(LevelWriter p_67221_, BlockPos p_67222_, BlockState p_67223_) private static void
setBlockKnownShape
(LevelWriter p_67257_, BlockPos p_67258_, BlockState p_67259_) private static DiscreteVoxelShape
updateLeaves
(LevelAccessor p_225252_, BoundingBox p_225253_, Set<BlockPos> p_225254_, Set<BlockPos> p_225255_, Set<BlockPos> p_225256_) static boolean
validTreePos
(LevelSimulatedReader p_67273_, BlockPos p_67274_) Methods inherited from class net.minecraft.world.level.levelgen.feature.Feature
checkNeighbors, configuredCodec, isAdjacentToAir, isDirt, isGrassOrDirt, isReplaceable, isStone, markAboveForPostProcessing, place, safeSetBlock
-
Field Details
-
BLOCK_UPDATE_FLAGS
private static final int BLOCK_UPDATE_FLAGS- See Also:
-
-
Constructor Details
-
TreeFeature
-
-
Method Details
-
isVine
-
isBlockWater
-
isAirOrLeaves
-
isReplaceablePlant
-
setBlockKnownShape
private static void setBlockKnownShape(LevelWriter p_67257_, BlockPos p_67258_, BlockState p_67259_) -
validTreePos
-
doPlace
private boolean doPlace(WorldGenLevel p_225258_, RandomSource p_225259_, BlockPos p_225260_, BiConsumer<BlockPos, BlockState> p_225261_, BiConsumer<BlockPos, BlockState> p_225262_, BiConsumer<BlockPos, BlockState> p_225263_, TreeConfiguration p_225264_) -
getMaxFreeTreeHeight
private int getMaxFreeTreeHeight(LevelSimulatedReader p_67216_, int p_67217_, BlockPos p_67218_, TreeConfiguration p_67219_) -
setBlock
- Overrides:
setBlock
in classFeature<TreeConfiguration>
-
place
- Specified by:
place
in classFeature<TreeConfiguration>
-
updateLeaves
private static DiscreteVoxelShape updateLeaves(LevelAccessor p_225252_, BoundingBox p_225253_, Set<BlockPos> p_225254_, Set<BlockPos> p_225255_, Set<BlockPos> p_225256_)
-