Class SaplingGenerator

java.lang.Object
net.minecraft.block.sapling.SaplingGenerator
Direct Known Subclasses:
AcaciaSaplingGenerator, AzaleaSaplingGenerator, BirchSaplingGenerator, LargeTreeSaplingGenerator, OakSaplingGenerator

public abstract class SaplingGenerator extends Object
Mappings:
Namespace Name
official cka
intermediary net/minecraft/class_2647
named net/minecraft/block/sapling/SaplingGenerator
  • Constructor Details

    • SaplingGenerator

      public SaplingGenerator()
  • Method Details

    • createTreeFeature

      @Nullable protected abstract @Nullable ConfiguredFeature<TreeFeatureConfig,?> createTreeFeature(Random random, boolean bees)
      Mappings:
      Namespace Name Mixin selector
      official a Lcka;a(Ljava/util/Random;Z)Lcrn;
      intermediary method_11430 Lnet/minecraft/class_2647;method_11430(Ljava/util/Random;Z)Lnet/minecraft/class_2975;
      named createTreeFeature Lnet/minecraft/block/sapling/SaplingGenerator;createTreeFeature(Ljava/util/Random;Z)Lnet/minecraft/world/gen/feature/ConfiguredFeature;
    • generate

      public boolean generate(ServerWorld world, ChunkGenerator chunkGenerator, BlockPos pos, BlockState state, Random random)
      Mappings:
      Namespace Name Mixin selector
      official a Lcka;a(Labr;Lcmn;Lgg;Lcks;Ljava/util/Random;)Z
      intermediary method_11431 Lnet/minecraft/class_2647;method_11431(Lnet/minecraft/class_3218;Lnet/minecraft/class_2794;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Ljava/util/Random;)Z
      named generate Lnet/minecraft/block/sapling/SaplingGenerator;generate(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/world/gen/chunk/ChunkGenerator;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Ljava/util/Random;)Z
    • areFlowersNearby

      private boolean areFlowersNearby(WorldAccess world, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official a Lcka;a(Lbwq;Lgg;)Z
      intermediary method_24282 Lnet/minecraft/class_2647;method_24282(Lnet/minecraft/class_1936;Lnet/minecraft/class_2338;)Z
      named areFlowersNearby Lnet/minecraft/block/sapling/SaplingGenerator;areFlowersNearby(Lnet/minecraft/world/WorldAccess;Lnet/minecraft/util/math/BlockPos;)Z