Package net.minecraft.world.gen.feature
Class TreeFeature
java.lang.Object
net.minecraft.world.gen.feature.Feature<TreeFeatureConfig>
net.minecraft.world.gen.feature.TreeFeature
public class TreeFeature extends Feature<TreeFeatureConfig>
- Mappings:
Namespace Name official cptintermediary net/minecraft/class_2944named net/minecraft/world/gen/feature/TreeFeature
-
Field Summary
Fields inherited from class net.minecraft.world.gen.feature.Feature
BAMBOO, BASALT_COLUMNS, BASALT_PILLAR, BLOCK_PILE, BLUE_ICE, BONUS_CHEST, CHORUS_PLANT, CORAL_CLAW, CORAL_MUSHROOM, CORAL_TREE, DECORATED, DELTA_FEATURE, DESERT_WELL, DISK, DRIPSTONE_CLUSTER, EMERALD_ORE, END_GATEWAY, END_ISLAND, END_SPIKE, FILL_LAYER, FLOWER, FOREST_ROCK, FOSSIL, FREEZE_TOP_LAYER, GEODE, GLOW_LICHEN, GLOWSTONE_BLOB, HUGE_BROWN_MUSHROOM, HUGE_FUNGUS, HUGE_RED_MUSHROOM, ICE_PATCH, ICE_SPIKE, ICEBERG, KELP, LAKE, LARGE_DRIPSTONE, MONSTER_ROOM, NETHER_FOREST_VEGETATION, NETHERRACK_REPLACE_BLOBS, NO_BONEMEAL_FLOWER, NO_OP, NO_SURFACE_ORE, ORE, RANDOM_BOOLEAN_SELECTOR, RANDOM_PATCH, RANDOM_SELECTOR, SEA_PICKLE, SEAGRASS, SIMPLE_BLOCK, SIMPLE_RANDOM_SELECTOR, SMALL_DRIPSTONE, SPRING_FEATURE, TREE, TWISTING_VINES, VINES, VOID_START_PLATFORM, WEEPING_VINES -
Constructor Summary
Constructors Constructor Description TreeFeature(com.mojang.serialization.Codec<TreeFeatureConfig> configCodec) -
Method Summary
Modifier and Type Method Description private static booleancanPlaceTreeOn(TestableWorld world, BlockPos pos)static booleancanReplace(TestableWorld world, BlockPos pos)static booleancanTreeReplace(TestableWorld world, BlockPos pos)private booleangenerate(StructureWorldAccess world, Random random, BlockPos pos, Set<BlockPos> logPositions, Set<BlockPos> leavesPositions, BlockBox box, TreeFeatureConfig config)booleangenerate(StructureWorldAccess structureWorldAccess, ChunkGenerator chunkGenerator, Random random, BlockPos blockPos, TreeFeatureConfig treeFeatureConfig)private intgetTopPosition(TestableWorld world, int height, BlockPos pos, TreeFeatureConfig config)static booleanisAirOrLeaves(TestableWorld world, BlockPos pos)private static booleanisReplaceablePlant(TestableWorld world, BlockPos pos)private static booleanisVine(TestableWorld world, BlockPos pos)private static booleanisWater(TestableWorld world, BlockPos pos)private VoxelSetplaceLogsAndLeaves(WorldAccess world, BlockBox box, Set<BlockPos> logs, Set<BlockPos> leaves)protected voidsetBlockState(ModifiableWorld world, BlockPos pos, BlockState state)static voidsetBlockStateWithoutUpdatingNeighbors(ModifiableWorld world, BlockPos pos, BlockState state)
-
Constructor Details
-
TreeFeature
- Mappings:
Namespace Name Mixin selector official <init>Lcnx;<init>(Lcom/mojang/serialization/Codec;)Vintermediary <init>Lnet/minecraft/class_3031;<init>(Lcom/mojang/serialization/Codec;)Vnamed <init>Lnet/minecraft/world/gen/feature/Feature;<init>(Lcom/mojang/serialization/Codec;)V
-
-
Method Details
-
canTreeReplace
- Mappings:
Namespace Name Mixin selector official cLcpt;c(Lbua;Lfx;)Zintermediary method_16432Lnet/minecraft/class_2944;method_16432(Lnet/minecraft/class_3746;Lnet/minecraft/class_2338;)Znamed canTreeReplaceLnet/minecraft/world/gen/feature/TreeFeature;canTreeReplace(Lnet/minecraft/world/TestableWorld;Lnet/minecraft/util/math/BlockPos;)Z
-
isVine
- Mappings:
Namespace Name Mixin selector official fLcpt;f(Lbua;Lfx;)Zintermediary method_16416Lnet/minecraft/class_2944;method_16416(Lnet/minecraft/class_3746;Lnet/minecraft/class_2338;)Znamed isVineLnet/minecraft/world/gen/feature/TreeFeature;isVine(Lnet/minecraft/world/TestableWorld;Lnet/minecraft/util/math/BlockPos;)Z
-
isWater
- Mappings:
Namespace Name Mixin selector official gLcpt;g(Lbua;Lfx;)Zintermediary method_16422Lnet/minecraft/class_2944;method_16422(Lnet/minecraft/class_3746;Lnet/minecraft/class_2338;)Znamed isWaterLnet/minecraft/world/gen/feature/TreeFeature;isWater(Lnet/minecraft/world/TestableWorld;Lnet/minecraft/util/math/BlockPos;)Z
-
isAirOrLeaves
- Mappings:
Namespace Name Mixin selector official dLcpt;d(Lbua;Lfx;)Zintermediary method_16420Lnet/minecraft/class_2944;method_16420(Lnet/minecraft/class_3746;Lnet/minecraft/class_2338;)Znamed isAirOrLeavesLnet/minecraft/world/gen/feature/TreeFeature;isAirOrLeaves(Lnet/minecraft/world/TestableWorld;Lnet/minecraft/util/math/BlockPos;)Z
-
canPlaceTreeOn
- Mappings:
Namespace Name Mixin selector official hLcpt;h(Lbua;Lfx;)Zintermediary method_16433Lnet/minecraft/class_2944;method_16433(Lnet/minecraft/class_3746;Lnet/minecraft/class_2338;)Znamed canPlaceTreeOnLnet/minecraft/world/gen/feature/TreeFeature;canPlaceTreeOn(Lnet/minecraft/world/TestableWorld;Lnet/minecraft/util/math/BlockPos;)Z
-
isReplaceablePlant
- Mappings:
Namespace Name Mixin selector official iLcpt;i(Lbua;Lfx;)Zintermediary method_16425Lnet/minecraft/class_2944;method_16425(Lnet/minecraft/class_3746;Lnet/minecraft/class_2338;)Znamed isReplaceablePlantLnet/minecraft/world/gen/feature/TreeFeature;isReplaceablePlant(Lnet/minecraft/world/TestableWorld;Lnet/minecraft/util/math/BlockPos;)Z
-
setBlockStateWithoutUpdatingNeighbors
public static void setBlockStateWithoutUpdatingNeighbors(ModifiableWorld world, BlockPos pos, BlockState state)- Mappings:
Namespace Name Mixin selector official bLcpt;b(Lbuc;Lfx;Lchg;)Vintermediary method_12774Lnet/minecraft/class_2944;method_12774(Lnet/minecraft/class_1945;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Vnamed setBlockStateWithoutUpdatingNeighborsLnet/minecraft/world/gen/feature/TreeFeature;setBlockStateWithoutUpdatingNeighbors(Lnet/minecraft/world/ModifiableWorld;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
-
canReplace
- Mappings:
Namespace Name Mixin selector official eLcpt;e(Lbua;Lfx;)Zintermediary method_27371Lnet/minecraft/class_2944;method_27371(Lnet/minecraft/class_3746;Lnet/minecraft/class_2338;)Znamed canReplaceLnet/minecraft/world/gen/feature/TreeFeature;canReplace(Lnet/minecraft/world/TestableWorld;Lnet/minecraft/util/math/BlockPos;)Z
-
generate
private boolean generate(StructureWorldAccess world, Random random, BlockPos pos, Set<BlockPos> logPositions, Set<BlockPos> leavesPositions, BlockBox box, TreeFeatureConfig config)- Mappings:
Namespace Name Mixin selector official aLcpt;a(Lbup;Ljava/util/Random;Lfx;Ljava/util/Set;Ljava/util/Set;Lcvu;Lcru;)Zintermediary method_12775Lnet/minecraft/class_2944;method_12775(Lnet/minecraft/class_5281;Ljava/util/Random;Lnet/minecraft/class_2338;Ljava/util/Set;Ljava/util/Set;Lnet/minecraft/class_3341;Lnet/minecraft/class_4643;)Znamed generateLnet/minecraft/world/gen/feature/TreeFeature;generate(Lnet/minecraft/world/StructureWorldAccess;Ljava/util/Random;Lnet/minecraft/util/math/BlockPos;Ljava/util/Set;Ljava/util/Set;Lnet/minecraft/util/math/BlockBox;Lnet/minecraft/world/gen/feature/TreeFeatureConfig;)Z
-
getTopPosition
private int getTopPosition(TestableWorld world, int height, BlockPos pos, TreeFeatureConfig config)- Mappings:
Namespace Name Mixin selector official aLcpt;a(Lbua;ILfx;Lcru;)Iintermediary method_29963Lnet/minecraft/class_2944;method_29963(Lnet/minecraft/class_3746;ILnet/minecraft/class_2338;Lnet/minecraft/class_4643;)Inamed getTopPositionLnet/minecraft/world/gen/feature/TreeFeature;getTopPosition(Lnet/minecraft/world/TestableWorld;ILnet/minecraft/util/math/BlockPos;Lnet/minecraft/world/gen/feature/TreeFeatureConfig;)I
-
setBlockState
- Overrides:
setBlockStatein classFeature<TreeFeatureConfig>- Mappings:
Namespace Name Mixin selector official aLcnx;a(Lbuc;Lfx;Lchg;)Vintermediary method_13153Lnet/minecraft/class_3031;method_13153(Lnet/minecraft/class_1945;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Vnamed setBlockStateLnet/minecraft/world/gen/feature/Feature;setBlockState(Lnet/minecraft/world/ModifiableWorld;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
-
generate
public final boolean generate(StructureWorldAccess structureWorldAccess, ChunkGenerator chunkGenerator, Random random, BlockPos blockPos, TreeFeatureConfig treeFeatureConfig)- Specified by:
generatein classFeature<TreeFeatureConfig>- Mappings:
Namespace Name Mixin selector official aLcpt;a(Lbup;Lciz;Ljava/util/Random;Lfx;Lcru;)Zintermediary method_22362Lnet/minecraft/class_2944;method_22362(Lnet/minecraft/class_5281;Lnet/minecraft/class_2794;Ljava/util/Random;Lnet/minecraft/class_2338;Lnet/minecraft/class_4643;)Znamed generateLnet/minecraft/world/gen/feature/TreeFeature;generate(Lnet/minecraft/world/StructureWorldAccess;Lnet/minecraft/world/gen/chunk/ChunkGenerator;Ljava/util/Random;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/world/gen/feature/TreeFeatureConfig;)Z
-
placeLogsAndLeaves
private VoxelSet placeLogsAndLeaves(WorldAccess world, BlockBox box, Set<BlockPos> logs, Set<BlockPos> leaves)- Mappings:
Namespace Name Mixin selector official aLcpt;a(Lbtv;Lcvu;Ljava/util/Set;Ljava/util/Set;)Ldij;intermediary method_23380Lnet/minecraft/class_2944;method_23380(Lnet/minecraft/class_1936;Lnet/minecraft/class_3341;Ljava/util/Set;Ljava/util/Set;)Lnet/minecraft/class_251;named placeLogsAndLeavesLnet/minecraft/world/gen/feature/TreeFeature;placeLogsAndLeaves(Lnet/minecraft/world/WorldAccess;Lnet/minecraft/util/math/BlockBox;Ljava/util/Set;Ljava/util/Set;)Lnet/minecraft/util/shape/VoxelSet;
-