Package net.minecraft.world.gen.feature
Class TreeFeature
java.lang.Object
net.minecraft.world.gen.feature.Feature<TreeFeatureConfig>
net.minecraft.world.gen.feature.TreeFeature
- Mappings:
Namespace Name named net/minecraft/world/gen/feature/TreeFeatureintermediary net/minecraft/class_2944official emu
-
Field Summary
FieldsFields inherited from class net.minecraft.world.gen.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_PLATFORM, END_SPIKE, FALLEN_TREE, 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, NETHERRACK_REPLACE_BLOBS, NO_BONEMEAL_FLOWER, NO_OP, ORE, POINTED_DRIPSTONE, RANDOM_BOOLEAN_SELECTOR, RANDOM_PATCH, RANDOM_SELECTOR, REPLACE_SINGLE_BLOCK, ROOT_SYSTEM, SCATTERED_ORE, SCULK_PATCH, SEA_PICKLE, SEAGRASS, SIMPLE_BLOCK, SIMPLE_RANDOM_SELECTOR, SPRING_FEATURE, TREE, TWISTING_VINES, UNDERWATER_MAGMA, VEGETATION_PATCH, VINES, VOID_START_PLATFORM, WATERLOGGED_VEGETATION_PATCH, WEEPING_VINES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancanReplace(TestableWorld world, BlockPos pos) final booleangenerate(FeatureContext<TreeFeatureConfig> context) private booleangenerate(StructureWorldAccess world, Random random, BlockPos pos, BiConsumer<BlockPos, BlockState> rootPlacerReplacer, BiConsumer<BlockPos, BlockState> trunkPlacerReplacer, FoliagePlacer.BlockPlacer blockPlacer, TreeFeatureConfig config) getLeafLitterPositions(TreeDecorator.Generator decoratorGenerator) private intgetTopPosition(TestableWorld world, int height, BlockPos pos, TreeFeatureConfig config) static booleanisAirOrLeaves(TestableWorld world, BlockPos pos) static booleanisVine(TestableWorld world, BlockPos pos) private static VoxelSetplaceLogsAndLeaves(WorldAccess world, BlockBox box, Set<BlockPos> trunkPositions, Set<BlockPos> decorationPositions, Set<BlockPos> rootPositions) protected voidsetBlockState(ModifiableWorld world, BlockPos pos, BlockState state) private static voidsetBlockStateWithoutUpdatingNeighbors(ModifiableWorld world, BlockPos pos, BlockState state) Methods inherited from class net.minecraft.world.gen.feature.Feature
generateIfValid, getCodec, isExposedToAir, isSoil, isSoil, isStone, markBlocksAboveForPostProcessing, notInBlockTagPredicate, setBlockStateIf, testAdjacentStates
-
Field Details
-
FORCE_STATE_AND_NOTIFY_ALL
private static final int FORCE_STATE_AND_NOTIFY_ALL- See Also:
- Mappings:
Namespace Name Mixin selector named FORCE_STATE_AND_NOTIFY_ALLLnet/minecraft/world/gen/feature/TreeFeature;FORCE_STATE_AND_NOTIFY_ALL:Iintermediary field_31519Lnet/minecraft/class_2944;field_31519:Iofficial aLemu;a:I
-
-
Constructor Details
-
TreeFeature
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/world/gen/feature/Feature;<init>(Lcom/mojang/serialization/Codec;)Vintermediary <init>Lnet/minecraft/class_3031;<init>(Lcom/mojang/serialization/Codec;)Vofficial <init>Leli;<init>(Lcom/mojang/serialization/Codec;)V
-
-
Method Details
-
isVine
- Mappings:
Namespace Name Mixin selector named isVineLnet/minecraft/world/gen/feature/TreeFeature;isVine(Lnet/minecraft/world/TestableWorld;Lnet/minecraft/util/math/BlockPos;)Zintermediary method_16416Lnet/minecraft/class_2944;method_16416(Lnet/minecraft/class_3746;Lnet/minecraft/class_2338;)Zofficial bLemu;b(Ldlb;Liy;)Z
-
isAirOrLeaves
- Mappings:
Namespace Name Mixin selector named isAirOrLeavesLnet/minecraft/world/gen/feature/TreeFeature;isAirOrLeaves(Lnet/minecraft/world/TestableWorld;Lnet/minecraft/util/math/BlockPos;)Zintermediary method_16420Lnet/minecraft/class_2944;method_16420(Lnet/minecraft/class_3746;Lnet/minecraft/class_2338;)Zofficial cLemu;c(Ldlb;Liy;)Z
-
setBlockStateWithoutUpdatingNeighbors
private static void setBlockStateWithoutUpdatingNeighbors(ModifiableWorld world, BlockPos pos, BlockState state) - Mappings:
Namespace Name Mixin selector named setBlockStateWithoutUpdatingNeighborsLnet/minecraft/world/gen/feature/TreeFeature;setBlockStateWithoutUpdatingNeighbors(Lnet/minecraft/world/ModifiableWorld;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Vintermediary method_12774Lnet/minecraft/class_2944;method_12774(Lnet/minecraft/class_1945;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Vofficial bLemu;b(Ldld;Liy;Lecc;)V
-
canReplace
- Mappings:
Namespace Name Mixin selector named canReplaceLnet/minecraft/world/gen/feature/TreeFeature;canReplace(Lnet/minecraft/world/TestableWorld;Lnet/minecraft/util/math/BlockPos;)Zintermediary method_27371Lnet/minecraft/class_2944;method_27371(Lnet/minecraft/class_3746;Lnet/minecraft/class_2338;)Zofficial dLemu;d(Ldlb;Liy;)Z
-
generate
private boolean generate(StructureWorldAccess world, Random random, BlockPos pos, BiConsumer<BlockPos, BlockState> rootPlacerReplacer, BiConsumer<BlockPos, BlockState> trunkPlacerReplacer, FoliagePlacer.BlockPlacer blockPlacer, TreeFeatureConfig config) - Mappings:
Namespace Name Mixin selector named generateLnet/minecraft/world/gen/feature/TreeFeature;generate(Lnet/minecraft/world/StructureWorldAccess;Lnet/minecraft/util/math/random/Random;Lnet/minecraft/util/math/BlockPos;Ljava/util/function/BiConsumer;Ljava/util/function/BiConsumer;Lnet/minecraft/world/gen/foliage/FoliagePlacer$BlockPlacer;Lnet/minecraft/world/gen/feature/TreeFeatureConfig;)Zintermediary method_12775Lnet/minecraft/class_2944;method_12775(Lnet/minecraft/class_5281;Lnet/minecraft/class_5819;Lnet/minecraft/class_2338;Ljava/util/function/BiConsumer;Ljava/util/function/BiConsumer;Lnet/minecraft/class_4647$class_8179;Lnet/minecraft/class_4643;)Zofficial aLemu;a(Ldlu;Lbao;Liy;Ljava/util/function/BiConsumer;Ljava/util/function/BiConsumer;Leoz$b;Leoj;)Z
-
getTopPosition
- Mappings:
Namespace Name Mixin selector named getTopPositionLnet/minecraft/world/gen/feature/TreeFeature;getTopPosition(Lnet/minecraft/world/TestableWorld;ILnet/minecraft/util/math/BlockPos;Lnet/minecraft/world/gen/feature/TreeFeatureConfig;)Iintermediary method_29963Lnet/minecraft/class_2944;method_29963(Lnet/minecraft/class_3746;ILnet/minecraft/class_2338;Lnet/minecraft/class_4643;)Iofficial aLemu;a(Ldlb;ILiy;Leoj;)I
-
setBlockState
- Overrides:
setBlockStatein classFeature<TreeFeatureConfig>- Mappings:
Namespace Name Mixin selector named setBlockStateLnet/minecraft/world/gen/feature/Feature;setBlockState(Lnet/minecraft/world/ModifiableWorld;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Vintermediary method_13153Lnet/minecraft/class_3031;method_13153(Lnet/minecraft/class_1945;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Vofficial aLeli;a(Ldld;Liy;Lecc;)V
-
generate
- Specified by:
generatein classFeature<TreeFeatureConfig>- Mappings:
Namespace Name Mixin selector named generateLnet/minecraft/world/gen/feature/Feature;generate(Lnet/minecraft/world/gen/feature/util/FeatureContext;)Zintermediary method_13151Lnet/minecraft/class_3031;method_13151(Lnet/minecraft/class_5821;)Zofficial aLeli;a(Lelk;)Z
-
placeLogsAndLeaves
private static VoxelSet placeLogsAndLeaves(WorldAccess world, BlockBox box, Set<BlockPos> trunkPositions, Set<BlockPos> decorationPositions, Set<BlockPos> rootPositions) - Mappings:
Namespace Name Mixin selector named placeLogsAndLeavesLnet/minecraft/world/gen/feature/TreeFeature;placeLogsAndLeaves(Lnet/minecraft/world/WorldAccess;Lnet/minecraft/util/math/BlockBox;Ljava/util/Set;Ljava/util/Set;Ljava/util/Set;)Lnet/minecraft/util/shape/VoxelSet;intermediary method_23380Lnet/minecraft/class_2944;method_23380(Lnet/minecraft/class_1936;Lnet/minecraft/class_3341;Ljava/util/Set;Ljava/util/Set;Ljava/util/Set;)Lnet/minecraft/class_251;official aLemu;a(Ldkw;Lesr;Ljava/util/Set;Ljava/util/Set;Ljava/util/Set;)Lfgx;
-
getLeafLitterPositions
- Mappings:
Namespace Name Mixin selector named getLeafLitterPositionsLnet/minecraft/world/gen/feature/TreeFeature;getLeafLitterPositions(Lnet/minecraft/world/gen/treedecorator/TreeDecorator$Generator;)Ljava/util/List;intermediary method_66482Lnet/minecraft/class_2944;method_66482(Lnet/minecraft/class_4662$class_7402;)Ljava/util/List;official aLemu;a(Leqj$a;)Ljava/util/List;
-