Package net.minecraft.block
Class SaplingGenerator
java.lang.Object
net.minecraft.block.SaplingGenerator
- Mappings:
Namespace Name named net/minecraft/block/SaplingGenerator
intermediary net/minecraft/class_8813
official drt
-
Field Summary
Modifier and TypeFieldDescriptionstatic final SaplingGenerator
static final SaplingGenerator
private final Optional
<RegistryKey<ConfiguredFeature<?, ?>>> static final SaplingGenerator
static final SaplingGenerator
static final com.mojang.serialization.Codec
<SaplingGenerator> static final SaplingGenerator
private static final Map
<String, SaplingGenerator> private final String
static final SaplingGenerator
static final SaplingGenerator
private final Optional
<RegistryKey<ConfiguredFeature<?, ?>>> static final SaplingGenerator
private final Optional
<RegistryKey<ConfiguredFeature<?, ?>>> private final float
private final Optional
<RegistryKey<ConfiguredFeature<?, ?>>> private final Optional
<RegistryKey<ConfiguredFeature<?, ?>>> private final Optional
<RegistryKey<ConfiguredFeature<?, ?>>> static final SaplingGenerator
-
Constructor Summary
ConstructorDescriptionSaplingGenerator
(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) SaplingGenerator
(String id, Optional<RegistryKey<ConfiguredFeature<?, ?>>> megaVariant, Optional<RegistryKey<ConfiguredFeature<?, ?>>> regularVariant, Optional<RegistryKey<ConfiguredFeature<?, ?>>> beesVariant) -
Method Summary
Modifier and TypeMethodDescriptionprivate boolean
areFlowersNearby
(WorldAccess world, BlockPos pos) private static boolean
canGenerateLargeTree
(BlockState state, BlockView world, BlockPos pos, int x, int z) boolean
generate
(ServerWorld world, ChunkGenerator chunkGenerator, BlockPos pos, BlockState state, Random random) private @Nullable RegistryKey
<ConfiguredFeature<?, ?>> getMegaTreeFeature
(Random random) private @Nullable RegistryKey
<ConfiguredFeature<?, ?>> getSmallTreeFeature
(Random random, boolean flowersNearby)
-
Field Details
-
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 k
Ldrt;k:Ljava/util/Map;
-
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
Ldrt;a:Lcom/mojang/serialization/Codec;
-
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
Ldrt;b:Ldrt;
-
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
Ldrt;c:Ldrt;
-
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
Ldrt;d:Ldrt;
-
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
Ldrt;e:Ldrt;
-
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
Ldrt;f:Ldrt;
-
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
Ldrt;g:Ldrt;
-
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
Ldrt;h:Ldrt;
-
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
Ldrt;i:Ldrt;
-
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
Ldrt;j:Ldrt;
-
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 l
Ldrt;l: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 m
Ldrt;m:F
-
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 n
Ldrt;n:Ljava/util/Optional;
-
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 o
Ldrt;o:Ljava/util/Optional;
-
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 p
Ldrt;p:Ljava/util/Optional;
-
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 q
Ldrt;q:Ljava/util/Optional;
-
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 r
Ldrt;r:Ljava/util/Optional;
-
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 s
Ldrt;s: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>
Ldrt;<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>
Ldrt;<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
Ldrt;a(Lazh;Z)Lale;
-
getMegaTreeFeature
- 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
Ldrt;a(Lazh;)Lale;
-
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
Ldrt;a(Larf;Ldub;Liz;Ldse;Lazh;)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
Ldrt;a(Ldse;Ldbg;Liz;II)Z
-
areFlowersNearby
- 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
Ldrt;a(Ldcb;Liz;)Z
-