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 csy
intermediary net/minecraft/class_2944
named net/minecraft/world/gen/feature/TreeFeature
  • Field Details

    • field_31519

      private static final int field_31519
      See Also:
      Constant Field Values
      Mappings:
      Namespace Name Mixin selector
      official a Lcsy;a:I
      intermediary field_31519 Lnet/minecraft/class_2944;field_31519:I
      named field_31519 Lnet/minecraft/world/gen/feature/TreeFeature;field_31519:I
  • Constructor Details

    • TreeFeature

      public TreeFeature​(com.mojang.serialization.Codec<TreeFeatureConfig> configCodec)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcqy;<init>(Lcom/mojang/serialization/Codec;)V
      intermediary <init> Lnet/minecraft/class_3031;<init>(Lcom/mojang/serialization/Codec;)V
      named <init> Lnet/minecraft/world/gen/feature/Feature;<init>(Lcom/mojang/serialization/Codec;)V
  • Method Details

    • canTreeReplace

      public static boolean canTreeReplace​(TestableWorld world, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official c Lcsy;c(Lbvx;Lgb;)Z
      intermediary method_16432 Lnet/minecraft/class_2944;method_16432(Lnet/minecraft/class_3746;Lnet/minecraft/class_2338;)Z
      named canTreeReplace Lnet/minecraft/world/gen/feature/TreeFeature;canTreeReplace(Lnet/minecraft/world/TestableWorld;Lnet/minecraft/util/math/BlockPos;)Z
    • isVine

      private static boolean isVine​(TestableWorld world, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official f Lcsy;f(Lbvx;Lgb;)Z
      intermediary method_16416 Lnet/minecraft/class_2944;method_16416(Lnet/minecraft/class_3746;Lnet/minecraft/class_2338;)Z
      named isVine Lnet/minecraft/world/gen/feature/TreeFeature;isVine(Lnet/minecraft/world/TestableWorld;Lnet/minecraft/util/math/BlockPos;)Z
    • isWater

      private static boolean isWater​(TestableWorld world, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official g Lcsy;g(Lbvx;Lgb;)Z
      intermediary method_16422 Lnet/minecraft/class_2944;method_16422(Lnet/minecraft/class_3746;Lnet/minecraft/class_2338;)Z
      named isWater Lnet/minecraft/world/gen/feature/TreeFeature;isWater(Lnet/minecraft/world/TestableWorld;Lnet/minecraft/util/math/BlockPos;)Z
    • isAirOrLeaves

      public static boolean isAirOrLeaves​(TestableWorld world, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official d Lcsy;d(Lbvx;Lgb;)Z
      intermediary method_16420 Lnet/minecraft/class_2944;method_16420(Lnet/minecraft/class_3746;Lnet/minecraft/class_2338;)Z
      named isAirOrLeaves Lnet/minecraft/world/gen/feature/TreeFeature;isAirOrLeaves(Lnet/minecraft/world/TestableWorld;Lnet/minecraft/util/math/BlockPos;)Z
    • canPlaceTreeOn

      private static boolean canPlaceTreeOn​(TestableWorld world, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official h Lcsy;h(Lbvx;Lgb;)Z
      intermediary method_16433 Lnet/minecraft/class_2944;method_16433(Lnet/minecraft/class_3746;Lnet/minecraft/class_2338;)Z
      named canPlaceTreeOn Lnet/minecraft/world/gen/feature/TreeFeature;canPlaceTreeOn(Lnet/minecraft/world/TestableWorld;Lnet/minecraft/util/math/BlockPos;)Z
    • isReplaceablePlant

      private static boolean isReplaceablePlant​(TestableWorld world, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official i Lcsy;i(Lbvx;Lgb;)Z
      intermediary method_16425 Lnet/minecraft/class_2944;method_16425(Lnet/minecraft/class_3746;Lnet/minecraft/class_2338;)Z
      named isReplaceablePlant Lnet/minecraft/world/gen/feature/TreeFeature;isReplaceablePlant(Lnet/minecraft/world/TestableWorld;Lnet/minecraft/util/math/BlockPos;)Z
    • setBlockStateWithoutUpdatingNeighbors

      private static void setBlockStateWithoutUpdatingNeighbors​(ModifiableWorld world, BlockPos pos, BlockState state)
      Mappings:
      Namespace Name Mixin selector
      official b Lcsy;b(Lbvz;Lgb;Lcjr;)V
      intermediary method_12774 Lnet/minecraft/class_2944;method_12774(Lnet/minecraft/class_1945;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V
      named setBlockStateWithoutUpdatingNeighbors Lnet/minecraft/world/gen/feature/TreeFeature;setBlockStateWithoutUpdatingNeighbors(Lnet/minecraft/world/ModifiableWorld;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
    • canReplace

      public static boolean canReplace​(TestableWorld world, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official e Lcsy;e(Lbvx;Lgb;)Z
      intermediary method_27371 Lnet/minecraft/class_2944;method_27371(Lnet/minecraft/class_3746;Lnet/minecraft/class_2338;)Z
      named canReplace Lnet/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, BiConsumer<BlockPos,​BlockState> biConsumer, BiConsumer<BlockPos,​BlockState> biConsumer2, TreeFeatureConfig treeFeatureConfig)
      Mappings:
      Namespace Name Mixin selector
      official a Lcsy;a(Lbwm;Ljava/util/Random;Lgb;Ljava/util/function/BiConsumer;Ljava/util/function/BiConsumer;Lcvg;)Z
      intermediary method_12775 Lnet/minecraft/class_2944;method_12775(Lnet/minecraft/class_5281;Ljava/util/Random;Lnet/minecraft/class_2338;Ljava/util/function/BiConsumer;Ljava/util/function/BiConsumer;Lnet/minecraft/class_4643;)Z
      named generate Lnet/minecraft/world/gen/feature/TreeFeature;generate(Lnet/minecraft/world/StructureWorldAccess;Ljava/util/Random;Lnet/minecraft/util/math/BlockPos;Ljava/util/function/BiConsumer;Ljava/util/function/BiConsumer;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 a Lcsy;a(Lbvx;ILgb;Lcvg;)I
      intermediary method_29963 Lnet/minecraft/class_2944;method_29963(Lnet/minecraft/class_3746;ILnet/minecraft/class_2338;Lnet/minecraft/class_4643;)I
      named getTopPosition Lnet/minecraft/world/gen/feature/TreeFeature;getTopPosition(Lnet/minecraft/world/TestableWorld;ILnet/minecraft/util/math/BlockPos;Lnet/minecraft/world/gen/feature/TreeFeatureConfig;)I
    • setBlockState

      protected void setBlockState​(ModifiableWorld world, BlockPos pos, BlockState state)
      Overrides:
      setBlockState in class Feature<TreeFeatureConfig>
      Mappings:
      Namespace Name Mixin selector
      official a Lcqy;a(Lbvz;Lgb;Lcjr;)V
      intermediary method_13153 Lnet/minecraft/class_3031;method_13153(Lnet/minecraft/class_1945;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V
      named setBlockState Lnet/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​(FeatureContext<TreeFeatureConfig> context)
      Specified by:
      generate in class Feature<TreeFeatureConfig>
      Mappings:
      Namespace Name Mixin selector
      official a Lcqy;a(Lcqz;)Z
      intermediary method_13151 Lnet/minecraft/class_3031;method_13151(Lnet/minecraft/class_5821;)Z
      named generate Lnet/minecraft/world/gen/feature/Feature;generate(Lnet/minecraft/world/gen/feature/util/FeatureContext;)Z
    • placeLogsAndLeaves

      private static VoxelSet placeLogsAndLeaves​(WorldAccess worldAccess, BlockBox blockBox, Set<BlockPos> set, Set<BlockPos> set2)
      Mappings:
      Namespace Name Mixin selector
      official a Lcsy;a(Lbvs;Lczp;Ljava/util/Set;Ljava/util/Set;)Ldmh;
      intermediary method_23380 Lnet/minecraft/class_2944;method_23380(Lnet/minecraft/class_1936;Lnet/minecraft/class_3341;Ljava/util/Set;Ljava/util/Set;)Lnet/minecraft/class_251;
      named placeLogsAndLeaves Lnet/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;