Package net.minecraft.block
Class SaplingGenerator
java.lang.Object
net.minecraft.block.SaplingGenerator
- Mappings:
Namespace Name official diw
intermediary net/minecraft/class_8813
named net/minecraft/block/SaplingGenerator
-
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 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
-