Class SaplingGenerator

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

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

    • GENERATORS

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      private final Optional<RegistryKey<ConfiguredFeature<?,?>>> rareBeesVariant
      Mappings:
      Namespace Name Mixin selector
      official s Ldiw;s:Ljava/util/Optional;
      intermediary field_46528 Lnet/minecraft/class_8813;field_46528:Ljava/util/Optional;
      named rareBeesVariant Lnet/minecraft/block/SaplingGenerator;rareBeesVariant: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
      official <init> Ldiw;<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
      named <init> Lnet/minecraft/block/SaplingGenerator;<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
      official <init> Ldiw;<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
      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
  • Method Details

    • getSmallTreeFeature

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

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

      public boolean generate(ServerWorld world, ChunkGenerator chunkGenerator, BlockPos pos, BlockState state, Random random)
      Mappings:
      Namespace Name Mixin selector
      official a Ldiw;a(Land;Ldle;Lhx;Ldjh;Lauv;)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
      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
    • canGenerateLargeTree

      private static boolean canGenerateLargeTree(BlockState state, BlockView world, BlockPos pos, int x, int z)
      Mappings:
      Namespace Name Mixin selector
      official a Ldiw;a(Ldjh;Lcsv;Lhx;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
      named canGenerateLargeTree Lnet/minecraft/block/SaplingGenerator;canGenerateLargeTree(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;II)Z
    • areFlowersNearby

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