Class SaplingGenerator

java.lang.Object
net.minecraft.block.SaplingGenerator

public final class SaplingGenerator extends Object
Mappings:
Namespace Name
named net/minecraft/block/SaplingGenerator
intermediary net/minecraft/class_8813
official dxj
  • Field Details

    • GENERATORS

      private static final Map<String,SaplingGenerator> GENERATORS
      Mappings:
      Namespace Name Mixin selector
      named GENERATORS Lnet/minecraft/block/SaplingGenerator;GENERATORS:Ljava/util/Map;
      intermediary field_46520 Lnet/minecraft/class_8813;field_46520:Ljava/util/Map;
      official l Ldxj;l:Ljava/util/Map;
    • CODEC

      public static final com.mojang.serialization.Codec<SaplingGenerator> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/block/SaplingGenerator;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_46510 Lnet/minecraft/class_8813;field_46510:Lcom/mojang/serialization/Codec;
      official a Ldxj;a:Lcom/mojang/serialization/Codec;
    • OAK

      public static final SaplingGenerator OAK
      Mappings:
      Namespace Name Mixin selector
      named OAK Lnet/minecraft/block/SaplingGenerator;OAK:Lnet/minecraft/block/SaplingGenerator;
      intermediary field_46511 Lnet/minecraft/class_8813;field_46511:Lnet/minecraft/class_8813;
      official b Ldxj;b:Ldxj;
    • SPRUCE

      public static final SaplingGenerator SPRUCE
      Mappings:
      Namespace Name Mixin selector
      named SPRUCE Lnet/minecraft/block/SaplingGenerator;SPRUCE:Lnet/minecraft/block/SaplingGenerator;
      intermediary field_46512 Lnet/minecraft/class_8813;field_46512:Lnet/minecraft/class_8813;
      official c Ldxj;c:Ldxj;
    • MANGROVE

      public static final SaplingGenerator MANGROVE
      Mappings:
      Namespace Name Mixin selector
      named MANGROVE Lnet/minecraft/block/SaplingGenerator;MANGROVE:Lnet/minecraft/block/SaplingGenerator;
      intermediary field_46513 Lnet/minecraft/class_8813;field_46513:Lnet/minecraft/class_8813;
      official d Ldxj;d:Ldxj;
    • AZALEA

      public static final SaplingGenerator AZALEA
      Mappings:
      Namespace Name Mixin selector
      named AZALEA Lnet/minecraft/block/SaplingGenerator;AZALEA:Lnet/minecraft/block/SaplingGenerator;
      intermediary field_46514 Lnet/minecraft/class_8813;field_46514:Lnet/minecraft/class_8813;
      official e Ldxj;e:Ldxj;
    • BIRCH

      public static final SaplingGenerator BIRCH
      Mappings:
      Namespace Name Mixin selector
      named BIRCH Lnet/minecraft/block/SaplingGenerator;BIRCH:Lnet/minecraft/block/SaplingGenerator;
      intermediary field_46515 Lnet/minecraft/class_8813;field_46515:Lnet/minecraft/class_8813;
      official f Ldxj;f:Ldxj;
    • JUNGLE

      public static final SaplingGenerator JUNGLE
      Mappings:
      Namespace Name Mixin selector
      named JUNGLE Lnet/minecraft/block/SaplingGenerator;JUNGLE:Lnet/minecraft/block/SaplingGenerator;
      intermediary field_46516 Lnet/minecraft/class_8813;field_46516:Lnet/minecraft/class_8813;
      official g Ldxj;g:Ldxj;
    • ACACIA

      public static final SaplingGenerator ACACIA
      Mappings:
      Namespace Name Mixin selector
      named ACACIA Lnet/minecraft/block/SaplingGenerator;ACACIA:Lnet/minecraft/block/SaplingGenerator;
      intermediary field_46517 Lnet/minecraft/class_8813;field_46517:Lnet/minecraft/class_8813;
      official h Ldxj;h:Ldxj;
    • CHERRY

      public static final SaplingGenerator CHERRY
      Mappings:
      Namespace Name Mixin selector
      named CHERRY Lnet/minecraft/block/SaplingGenerator;CHERRY:Lnet/minecraft/block/SaplingGenerator;
      intermediary field_46518 Lnet/minecraft/class_8813;field_46518:Lnet/minecraft/class_8813;
      official i Ldxj;i:Ldxj;
    • DARK_OAK

      public static final SaplingGenerator DARK_OAK
      Mappings:
      Namespace Name Mixin selector
      named DARK_OAK Lnet/minecraft/block/SaplingGenerator;DARK_OAK:Lnet/minecraft/block/SaplingGenerator;
      intermediary field_46519 Lnet/minecraft/class_8813;field_46519:Lnet/minecraft/class_8813;
      official j Ldxj;j:Ldxj;
    • PALE_OAK

      public static final SaplingGenerator PALE_OAK
      Mappings:
      Namespace Name Mixin selector
      named PALE_OAK Lnet/minecraft/block/SaplingGenerator;PALE_OAK:Lnet/minecraft/block/SaplingGenerator;
      intermediary field_54791 Lnet/minecraft/class_8813;field_54791:Lnet/minecraft/class_8813;
      official k Ldxj;k:Ldxj;
    • id

      private final String id
      Mappings:
      Namespace Name Mixin selector
      named id Lnet/minecraft/block/SaplingGenerator;id:Ljava/lang/String;
      intermediary field_46521 Lnet/minecraft/class_8813;field_46521:Ljava/lang/String;
      official m Ldxj;m:Ljava/lang/String;
    • rareChance

      private final float rareChance
      Mappings:
      Namespace Name Mixin selector
      named rareChance Lnet/minecraft/block/SaplingGenerator;rareChance:F
      intermediary field_46522 Lnet/minecraft/class_8813;field_46522:F
      official n Ldxj;n:F
    • megaVariant

      private final Optional<RegistryKey<ConfiguredFeature<?,?>>> megaVariant
      Mappings:
      Namespace Name Mixin selector
      named megaVariant Lnet/minecraft/block/SaplingGenerator;megaVariant:Ljava/util/Optional;
      intermediary field_46523 Lnet/minecraft/class_8813;field_46523:Ljava/util/Optional;
      official o Ldxj;o:Ljava/util/Optional;
    • rareMegaVariant

      private final Optional<RegistryKey<ConfiguredFeature<?,?>>> rareMegaVariant
      Mappings:
      Namespace Name Mixin selector
      named rareMegaVariant Lnet/minecraft/block/SaplingGenerator;rareMegaVariant:Ljava/util/Optional;
      intermediary field_46524 Lnet/minecraft/class_8813;field_46524:Ljava/util/Optional;
      official p Ldxj;p:Ljava/util/Optional;
    • regularVariant

      private final Optional<RegistryKey<ConfiguredFeature<?,?>>> regularVariant
      Mappings:
      Namespace Name Mixin selector
      named regularVariant Lnet/minecraft/block/SaplingGenerator;regularVariant:Ljava/util/Optional;
      intermediary field_46525 Lnet/minecraft/class_8813;field_46525:Ljava/util/Optional;
      official q Ldxj;q:Ljava/util/Optional;
    • rareRegularVariant

      private final Optional<RegistryKey<ConfiguredFeature<?,?>>> rareRegularVariant
      Mappings:
      Namespace Name Mixin selector
      named rareRegularVariant Lnet/minecraft/block/SaplingGenerator;rareRegularVariant:Ljava/util/Optional;
      intermediary field_46526 Lnet/minecraft/class_8813;field_46526:Ljava/util/Optional;
      official r Ldxj;r:Ljava/util/Optional;
    • beesVariant

      private final Optional<RegistryKey<ConfiguredFeature<?,?>>> beesVariant
      Mappings:
      Namespace Name Mixin selector
      named beesVariant Lnet/minecraft/block/SaplingGenerator;beesVariant:Ljava/util/Optional;
      intermediary field_46527 Lnet/minecraft/class_8813;field_46527:Ljava/util/Optional;
      official s Ldxj;s:Ljava/util/Optional;
    • rareBeesVariant

      private final Optional<RegistryKey<ConfiguredFeature<?,?>>> rareBeesVariant
      Mappings:
      Namespace Name Mixin selector
      named rareBeesVariant Lnet/minecraft/block/SaplingGenerator;rareBeesVariant:Ljava/util/Optional;
      intermediary field_46528 Lnet/minecraft/class_8813;field_46528:Ljava/util/Optional;
      official t Ldxj;t:Ljava/util/Optional;
  • Constructor Details

    • SaplingGenerator

      public SaplingGenerator(String id, Optional<RegistryKey<ConfiguredFeature<?,?>>> megaVariant, Optional<RegistryKey<ConfiguredFeature<?,?>>> regularVariant, Optional<RegistryKey<ConfiguredFeature<?,?>>> beesVariant)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/block/SaplingGenerator;<init>(Ljava/lang/String;Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;)V
      intermediary <init> Lnet/minecraft/class_8813;<init>(Ljava/lang/String;Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;)V
      official <init> Ldxj;<init>(Ljava/lang/String;Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;)V
    • SaplingGenerator

      public SaplingGenerator(String id, float rareChance, Optional<RegistryKey<ConfiguredFeature<?,?>>> megaVariant, Optional<RegistryKey<ConfiguredFeature<?,?>>> rareMegaVariant, Optional<RegistryKey<ConfiguredFeature<?,?>>> regularVariant, Optional<RegistryKey<ConfiguredFeature<?,?>>> rareRegularVariant, Optional<RegistryKey<ConfiguredFeature<?,?>>> beesVariant, Optional<RegistryKey<ConfiguredFeature<?,?>>> rareBeesVariant)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/block/SaplingGenerator;<init>(Ljava/lang/String;FLjava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;)V
      intermediary <init> Lnet/minecraft/class_8813;<init>(Ljava/lang/String;FLjava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;)V
      official <init> Ldxj;<init>(Ljava/lang/String;FLjava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;)V
  • Method Details

    • getSmallTreeFeature

      @Nullable private @Nullable RegistryKey<ConfiguredFeature<?,?>> getSmallTreeFeature(Random random, boolean flowersNearby)
      Mappings:
      Namespace Name Mixin selector
      named getSmallTreeFeature Lnet/minecraft/block/SaplingGenerator;getSmallTreeFeature(Lnet/minecraft/util/math/random/Random;Z)Lnet/minecraft/registry/RegistryKey;
      intermediary method_54087 Lnet/minecraft/class_8813;method_54087(Lnet/minecraft/class_5819;Z)Lnet/minecraft/class_5321;
      official a Ldxj;a(Lbam;Z)Laly;
    • getMegaTreeFeature

      @Nullable private @Nullable RegistryKey<ConfiguredFeature<?,?>> getMegaTreeFeature(Random random)
      Mappings:
      Namespace Name Mixin selector
      named getMegaTreeFeature Lnet/minecraft/block/SaplingGenerator;getMegaTreeFeature(Lnet/minecraft/util/math/random/Random;)Lnet/minecraft/registry/RegistryKey;
      intermediary method_54086 Lnet/minecraft/class_8813;method_54086(Lnet/minecraft/class_5819;)Lnet/minecraft/class_5321;
      official a Ldxj;a(Lbam;)Laly;
    • generate

      public boolean generate(ServerWorld world, ChunkGenerator chunkGenerator, BlockPos pos, BlockState state, Random random)
      Mappings:
      Namespace Name Mixin selector
      named generate Lnet/minecraft/block/SaplingGenerator;generate(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/world/gen/chunk/ChunkGenerator;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/random/Random;)Z
      intermediary method_54085 Lnet/minecraft/class_8813;method_54085(Lnet/minecraft/class_3218;Lnet/minecraft/class_2794;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_5819;)Z
      official a Ldxj;a(Lash;Ldzq;Ljh;Ldxu;Lbam;)Z
    • canGenerateLargeTree

      private static boolean canGenerateLargeTree(BlockState state, BlockView world, BlockPos pos, int x, int z)
      Mappings:
      Namespace Name Mixin selector
      named canGenerateLargeTree Lnet/minecraft/block/SaplingGenerator;canGenerateLargeTree(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;II)Z
      intermediary method_54090 Lnet/minecraft/class_8813;method_54090(Lnet/minecraft/class_2680;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;II)Z
      official a Ldxj;a(Ldxu;Ldgm;Ljh;II)Z
    • areFlowersNearby

      private boolean areFlowersNearby(WorldAccess world, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      named areFlowersNearby Lnet/minecraft/block/SaplingGenerator;areFlowersNearby(Lnet/minecraft/world/WorldAccess;Lnet/minecraft/util/math/BlockPos;)Z
      intermediary method_54088 Lnet/minecraft/class_8813;method_54088(Lnet/minecraft/class_1936;Lnet/minecraft/class_2338;)Z
      official a Ldxj;a(Ldhi;Ljh;)Z