Package net.minecraft.world.gen.feature
Class RootSystemFeature
java.lang.Object
net.minecraft.world.gen.feature.Feature<RootSystemFeatureConfig>
net.minecraft.world.gen.feature.RootSystemFeature
public class RootSystemFeature extends Feature<RootSystemFeatureConfig>
- Mappings:
Namespace Name official crdintermediary 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_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, GROWING_PLANT, 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, RANDOM_BOOLEAN_SELECTOR, RANDOM_PATCH, RANDOM_SELECTOR, ROOT_SYSTEM, SCATTERED_ORE, SEA_PICKLE, SEAGRASS, SIMPLE_BLOCK, SIMPLE_RANDOM_SELECTOR, SMALL_DRIPSTONE, SPRING_FEATURE, TREE, TWISTING_VINES, UNDERWATER_MAGMA, VEGETATION_PATCH, VINES, VOID_START_PLATFORM, WATERLOGGED_VEGETATION_PATCH, WEEPING_VINES -
Constructor Summary
Constructors Constructor Description RootSystemFeature(com.mojang.serialization.Codec<RootSystemFeatureConfig> configCodec) -
Method Summary
Modifier and Type Method Description booleangenerate(FeatureContext<RootSystemFeatureConfig> context)private booleangenerateFeature(StructureWorldAccess world, ChunkGenerator generator, RootSystemFeatureConfig config, Random random, BlockPos pos)private voidgenerateHangingRoots(StructureWorldAccess world, RootSystemFeatureConfig config, Random random, BlockPos pos, BlockPos.Mutable mutablePos)private booleangenerateTreeAndRoots(StructureWorldAccess world, ChunkGenerator generator, RootSystemFeatureConfig config, Random random, BlockPos.Mutable mutablePos, BlockPos pos)private booleanhasEnoughSpaceForTree(StructureWorldAccess world, RootSystemFeatureConfig config, BlockPos pos)private voidplaceRoots(StructureWorldAccess world, RootSystemFeatureConfig config, Random random, int x, int z, BlockPos.Mutable mutablePos)Methods inherited from class net.minecraft.world.gen.feature.Feature
configure, getCodec, isAir, isExposedToAir, isSoil, isSoil, isStone, setBlockState, testAdjacentStates
-
Constructor Details
-
RootSystemFeature
- Mappings:
Namespace Name Mixin selector official <init>Lcpt;<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 aLcpt;a(Lcpu;)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
-
hasEnoughSpaceForTree
private boolean hasEnoughSpaceForTree(StructureWorldAccess world, RootSystemFeatureConfig config, BlockPos pos)- Mappings:
Namespace Name Mixin selector official aLcrd;a(Lbvl;Lctr;Lfx;)Zintermediary method_34310Lnet/minecraft/class_5921;method_34310(Lnet/minecraft/class_5281;Lnet/minecraft/class_5926;Lnet/minecraft/class_2338;)Znamed hasEnoughSpaceForTreeLnet/minecraft/world/gen/feature/RootSystemFeature;hasEnoughSpaceForTree(Lnet/minecraft/world/StructureWorldAccess;Lnet/minecraft/world/gen/feature/RootSystemFeatureConfig;Lnet/minecraft/util/math/BlockPos;)Z
-
generateTreeAndRoots
private boolean generateTreeAndRoots(StructureWorldAccess world, ChunkGenerator generator, RootSystemFeatureConfig config, Random random, BlockPos.Mutable mutablePos, BlockPos pos)- Mappings:
Namespace Name Mixin selector official aLcrd;a(Lbvl;Lckj;Lctr;Ljava/util/Random;Lfx$a;Lfx;)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
-
generateFeature
private boolean generateFeature(StructureWorldAccess world, ChunkGenerator generator, RootSystemFeatureConfig config, Random random, BlockPos pos)- Mappings:
Namespace Name Mixin selector official aLcrd;a(Lbvl;Lckj;Lctr;Ljava/util/Random;Lfx;)Zintermediary method_34309Lnet/minecraft/class_5921;method_34309(Lnet/minecraft/class_5281;Lnet/minecraft/class_2794;Lnet/minecraft/class_5926;Ljava/util/Random;Lnet/minecraft/class_2338;)Znamed generateFeatureLnet/minecraft/world/gen/feature/RootSystemFeature;generateFeature(Lnet/minecraft/world/StructureWorldAccess;Lnet/minecraft/world/gen/chunk/ChunkGenerator;Lnet/minecraft/world/gen/feature/RootSystemFeatureConfig;Ljava/util/Random;Lnet/minecraft/util/math/BlockPos;)Z
-
placeRoots
private void placeRoots(StructureWorldAccess world, RootSystemFeatureConfig config, Random random, int x, int z, BlockPos.Mutable mutablePos)- Mappings:
Namespace Name Mixin selector official aLcrd;a(Lbvl;Lctr;Ljava/util/Random;IILfx$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 placeRootsLnet/minecraft/world/gen/feature/RootSystemFeature;placeRoots(Lnet/minecraft/world/StructureWorldAccess;Lnet/minecraft/world/gen/feature/RootSystemFeatureConfig;Ljava/util/Random;IILnet/minecraft/util/math/BlockPos$Mutable;)V
-
generateHangingRoots
private void generateHangingRoots(StructureWorldAccess world, RootSystemFeatureConfig config, Random random, BlockPos pos, BlockPos.Mutable mutablePos)- Mappings:
Namespace Name Mixin selector official aLcrd;a(Lbvl;Lctr;Ljava/util/Random;Lfx;Lfx$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
-