Package net.minecraft.world.gen.feature
Class RootSystemFeature
java.lang.Object
net.minecraft.world.gen.feature.Feature<RootSystemFeatureConfig>
net.minecraft.world.gen.feature.RootSystemFeature
- Mappings:
Namespace Name official cxwintermediary net/minecraft/class_5921named net/minecraft/world/gen/feature/RootSystemFeature
-
Field Summary
Fields 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_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, ORE, POINTED_DRIPSTONE, RANDOM_BOOLEAN_SELECTOR, RANDOM_PATCH, RANDOM_SELECTOR, REPLACE_SINGLE_BLOCK, ROOT_SYSTEM, SCATTERED_ORE, 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
ConstructorsConstructorDescriptionRootSystemFeature(com.mojang.serialization.Codec<RootSystemFeatureConfig> configCodec) -
Method Summary
Modifier and TypeMethodDescriptionbooleangenerate(FeatureContext<RootSystemFeatureConfig> context) private static voidgenerateHangingRoots(StructureWorldAccess structureWorldAccess, RootSystemFeatureConfig rootSystemFeatureConfig, Random random, BlockPos blockPos, BlockPos.Mutable mutable) private static voidgenerateRoots(StructureWorldAccess structureWorldAccess, RootSystemFeatureConfig rootSystemFeatureConfig, Random random, int int2, int int3, BlockPos.Mutable mutable) private static booleangenerateTreeAndRoots(StructureWorldAccess structureWorldAccess, ChunkGenerator chunkGenerator, RootSystemFeatureConfig rootSystemFeatureConfig, Random random, BlockPos.Mutable mutable, BlockPos blockPos) private static booleanhasSpaceForTree(StructureWorldAccess structureWorldAccess, RootSystemFeatureConfig rootSystemFeatureConfig, BlockPos blockPos) private static booleanisAirOrWater(BlockState state, int height, int allowedVerticalWaterForTree) private static voidmethod_39918(BlockPos blockPos, int int2, StructureWorldAccess structureWorldAccess, RootSystemFeatureConfig rootSystemFeatureConfig, Random random) Methods inherited from class net.minecraft.world.gen.feature.Feature
configure, getCodec, isAir, isExposedToAir, isSoil, isSoil, isStone, markBlocksAboveForPostProcessing, notInBlockTagPredicate, setBlockState, setBlockStateIf, testAdjacentStates
-
Constructor Details
-
RootSystemFeature
- Mappings:
Namespace Name Mixin selector official <init>Lcwl;<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
-
generate
- Specified by:
generatein classFeature<RootSystemFeatureConfig>- Mappings:
Namespace Name Mixin selector official aLcwl;a(Lcwn;)Zintermediary method_13151Lnet/minecraft/class_3031;method_13151(Lnet/minecraft/class_5821;)Znamed generateLnet/minecraft/world/gen/feature/Feature;generate(Lnet/minecraft/world/gen/feature/util/FeatureContext;)Z
-
hasSpaceForTree
private static boolean hasSpaceForTree(StructureWorldAccess structureWorldAccess, RootSystemFeatureConfig rootSystemFeatureConfig, BlockPos blockPos) - Mappings:
Namespace Name Mixin selector official aLcxw;a(Lcav;Lczz;Lgh;)Zintermediary method_34310Lnet/minecraft/class_5921;method_34310(Lnet/minecraft/class_5281;Lnet/minecraft/class_5926;Lnet/minecraft/class_2338;)Znamed hasSpaceForTreeLnet/minecraft/world/gen/feature/RootSystemFeature;hasSpaceForTree(Lnet/minecraft/world/StructureWorldAccess;Lnet/minecraft/world/gen/feature/RootSystemFeatureConfig;Lnet/minecraft/util/math/BlockPos;)Z
-
isAirOrWater
- Mappings:
Namespace Name Mixin selector official aLcxw;a(Lcoc;II)Zintermediary method_36419Lnet/minecraft/class_5921;method_36419(Lnet/minecraft/class_2680;II)Znamed isAirOrWaterLnet/minecraft/world/gen/feature/RootSystemFeature;isAirOrWater(Lnet/minecraft/block/BlockState;II)Z
-
generateTreeAndRoots
private static boolean generateTreeAndRoots(StructureWorldAccess structureWorldAccess, ChunkGenerator chunkGenerator, RootSystemFeatureConfig rootSystemFeatureConfig, Random random, BlockPos.Mutable mutable, BlockPos blockPos) - Mappings:
Namespace Name Mixin selector official aLcxw;a(Lcav;Lcpz;Lczz;Ljava/util/Random;Lgh$a;Lgh;)Zintermediary method_34308Lnet/minecraft/class_5921;method_34308(Lnet/minecraft/class_5281;Lnet/minecraft/class_2794;Lnet/minecraft/class_5926;Ljava/util/Random;Lnet/minecraft/class_2338$class_2339;Lnet/minecraft/class_2338;)Znamed generateTreeAndRootsLnet/minecraft/world/gen/feature/RootSystemFeature;generateTreeAndRoots(Lnet/minecraft/world/StructureWorldAccess;Lnet/minecraft/world/gen/chunk/ChunkGenerator;Lnet/minecraft/world/gen/feature/RootSystemFeatureConfig;Ljava/util/Random;Lnet/minecraft/util/math/BlockPos$Mutable;Lnet/minecraft/util/math/BlockPos;)Z
-
method_39918
private static void method_39918(BlockPos blockPos, int int2, StructureWorldAccess structureWorldAccess, RootSystemFeatureConfig rootSystemFeatureConfig, Random random) - Mappings:
Namespace Name Mixin selector official aLcxw;a(Lgh;ILcav;Lczz;Ljava/util/Random;)Vintermediary method_39918Lnet/minecraft/class_5921;method_39918(Lnet/minecraft/class_2338;ILnet/minecraft/class_5281;Lnet/minecraft/class_5926;Ljava/util/Random;)Vnamed method_39918Lnet/minecraft/world/gen/feature/RootSystemFeature;method_39918(Lnet/minecraft/util/math/BlockPos;ILnet/minecraft/world/StructureWorldAccess;Lnet/minecraft/world/gen/feature/RootSystemFeatureConfig;Ljava/util/Random;)V
-
generateRoots
private static void generateRoots(StructureWorldAccess structureWorldAccess, RootSystemFeatureConfig rootSystemFeatureConfig, Random random, int int2, int int3, BlockPos.Mutable mutable) - Mappings:
Namespace Name Mixin selector official aLcxw;a(Lcav;Lczz;Ljava/util/Random;IILgh$a;)Vintermediary method_34311Lnet/minecraft/class_5921;method_34311(Lnet/minecraft/class_5281;Lnet/minecraft/class_5926;Ljava/util/Random;IILnet/minecraft/class_2338$class_2339;)Vnamed generateRootsLnet/minecraft/world/gen/feature/RootSystemFeature;generateRoots(Lnet/minecraft/world/StructureWorldAccess;Lnet/minecraft/world/gen/feature/RootSystemFeatureConfig;Ljava/util/Random;IILnet/minecraft/util/math/BlockPos$Mutable;)V
-
generateHangingRoots
private static void generateHangingRoots(StructureWorldAccess structureWorldAccess, RootSystemFeatureConfig rootSystemFeatureConfig, Random random, BlockPos blockPos, BlockPos.Mutable mutable) - Mappings:
Namespace Name Mixin selector official aLcxw;a(Lcav;Lczz;Ljava/util/Random;Lgh;Lgh$a;)Vintermediary method_34312Lnet/minecraft/class_5921;method_34312(Lnet/minecraft/class_5281;Lnet/minecraft/class_5926;Ljava/util/Random;Lnet/minecraft/class_2338;Lnet/minecraft/class_2338$class_2339;)Vnamed generateHangingRootsLnet/minecraft/world/gen/feature/RootSystemFeature;generateHangingRoots(Lnet/minecraft/world/StructureWorldAccess;Lnet/minecraft/world/gen/feature/RootSystemFeatureConfig;Ljava/util/Random;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/BlockPos$Mutable;)V
-