Package net.minecraft.world.gen.feature
Class StructureFeature<C extends FeatureConfig>
java.lang.Object
net.minecraft.world.gen.feature.StructureFeature<C>
- Direct Known Subclasses:
BuriedTreasureFeature
,DesertPyramidFeature
,EndCityFeature
,IglooFeature
,JigsawFeature
,JungleTempleFeature
,MineshaftFeature
,NetherFortressFeature
,NetherFossilFeature
,OceanMonumentFeature
,OceanRuinFeature
,RuinedPortalFeature
,ShipwreckFeature
,StrongholdFeature
,SwampHutFeature
,WoodlandMansionFeature
- Mappings:
Namespace Name official czd
intermediary net/minecraft/class_3195
named net/minecraft/world/gen/feature/StructureFeature
-
Field Summary
Modifier and TypeFieldDescriptionstatic final StructureFeature<StructurePoolFeatureConfig>
static final StructureFeature<ProbabilityConfig>
private final com.mojang.serialization.Codec<ConfiguredStructureFeature<C,
StructureFeature<C>>> static final StructureFeature<DefaultFeatureConfig>
static final StructureFeature<DefaultFeatureConfig>
static final int
static final StructureFeature<DefaultFeatureConfig>
static final StructureFeature<DefaultFeatureConfig>
static final StructureFeature<DefaultFeatureConfig>
private static final org.slf4j.Logger
static final StructureFeature<DefaultFeatureConfig>
static final StructureFeature<MineshaftFeatureConfig>
static final StructureFeature<DefaultFeatureConfig>
static final StructureFeature<RangeFeatureConfig>
static final StructureFeature<OceanRuinFeatureConfig>
private final StructureGeneratorFactory<C>
static final StructureFeature<StructurePoolFeatureConfig>
private final PostPlacementProcessor
static final StructureFeature<RuinedPortalFeatureConfig>
static final StructureFeature<ShipwreckFeatureConfig>
static final StructureFeature<DefaultFeatureConfig>
private static final Map<StructureFeature<?>,
GenerationStep.Feature> static final StructureFeature<DefaultFeatureConfig>
static final StructureFeature<StructurePoolFeatureConfig>
-
Constructor Summary
ConstructorDescriptionStructureFeature
(com.mojang.serialization.Codec<C> configCodec, StructureGeneratorFactory<C> piecesGenerator) StructureFeature
(com.mojang.serialization.Codec<C> configCodec, StructureGeneratorFactory<C> piecesGenerator, PostPlacementProcessor postPlacementProcessor) -
Method Summary
Modifier and TypeMethodDescriptionboolean
canGenerate
(DynamicRegistryManager registryManager, ChunkGenerator chunkGenerator, BiomeSource biomeSource, StructureManager structureManager, long worldSeed, ChunkPos pos, C config, HeightLimitView world, Predicate<RegistryEntry<Biome>> biomePredicate) ConfiguredStructureFeature<C,
? extends StructureFeature<C>> ConfiguredStructureFeature<C,
? extends StructureFeature<C>> ConfiguredStructureFeature<C,
? extends StructureFeature<C>> configure
(C config, TagKey<Biome> biomeTag, boolean bool, Map<SpawnGroup, StructureSpawns> map) ConfiguredStructureFeature<C,
? extends StructureFeature<C>> configure
(C config, TagKey<Biome> biomeTag, Map<SpawnGroup, StructureSpawns> map) com.mojang.serialization.Codec<ConfiguredStructureFeature<C,
StructureFeature<C>>> getCodec()
Gets the step during which this structure will participate in world generation.static BlockPos
getLocatedPos
(RandomSpreadStructurePlacement placement, ChunkPos chunkPos) Returns a block position for feature location.static void
init()
static @Nullable StructureStart
readStructureStart
(StructureContext context, NbtCompound nbt, long worldSeed) private static <F extends StructureFeature<?>>
Fregister
(String name, F structureFeature, GenerationStep.Feature step)
-
Field Details
-
STRUCTURE_TO_GENERATION_STEP
- Mappings:
Namespace Name Mixin selector official a
Lczd;a:Ljava/util/Map;
intermediary field_24862
Lnet/minecraft/class_3195;field_24862:Ljava/util/Map;
named STRUCTURE_TO_GENERATION_STEP
Lnet/minecraft/world/gen/feature/StructureFeature;STRUCTURE_TO_GENERATION_STEP:Ljava/util/Map;
-
LOGGER
private static final org.slf4j.Logger LOGGER- Mappings:
Namespace Name Mixin selector official u
Lczd;u:Lorg/slf4j/Logger;
intermediary field_13879
Lnet/minecraft/class_3195;field_13879:Lorg/slf4j/Logger;
named LOGGER
Lnet/minecraft/world/gen/feature/StructureFeature;LOGGER:Lorg/slf4j/Logger;
-
PILLAGER_OUTPOST
- Mappings:
Namespace Name Mixin selector official b
Lczd;b:Lczd;
intermediary field_24843
Lnet/minecraft/class_3195;field_24843:Lnet/minecraft/class_3195;
named PILLAGER_OUTPOST
Lnet/minecraft/world/gen/feature/StructureFeature;PILLAGER_OUTPOST:Lnet/minecraft/world/gen/feature/StructureFeature;
-
MINESHAFT
- Mappings:
Namespace Name Mixin selector official c
Lczd;c:Lczd;
intermediary field_24844
Lnet/minecraft/class_3195;field_24844:Lnet/minecraft/class_3195;
named MINESHAFT
Lnet/minecraft/world/gen/feature/StructureFeature;MINESHAFT:Lnet/minecraft/world/gen/feature/StructureFeature;
-
MANSION
- Mappings:
Namespace Name Mixin selector official d
Lczd;d:Lczd;
intermediary field_24845
Lnet/minecraft/class_3195;field_24845:Lnet/minecraft/class_3195;
named MANSION
Lnet/minecraft/world/gen/feature/StructureFeature;MANSION:Lnet/minecraft/world/gen/feature/StructureFeature;
-
JUNGLE_PYRAMID
- Mappings:
Namespace Name Mixin selector official e
Lczd;e:Lczd;
intermediary field_24846
Lnet/minecraft/class_3195;field_24846:Lnet/minecraft/class_3195;
named JUNGLE_PYRAMID
Lnet/minecraft/world/gen/feature/StructureFeature;JUNGLE_PYRAMID:Lnet/minecraft/world/gen/feature/StructureFeature;
-
DESERT_PYRAMID
- Mappings:
Namespace Name Mixin selector official f
Lczd;f:Lczd;
intermediary field_24847
Lnet/minecraft/class_3195;field_24847:Lnet/minecraft/class_3195;
named DESERT_PYRAMID
Lnet/minecraft/world/gen/feature/StructureFeature;DESERT_PYRAMID:Lnet/minecraft/world/gen/feature/StructureFeature;
-
IGLOO
- Mappings:
Namespace Name Mixin selector official g
Lczd;g:Lczd;
intermediary field_24848
Lnet/minecraft/class_3195;field_24848:Lnet/minecraft/class_3195;
named IGLOO
Lnet/minecraft/world/gen/feature/StructureFeature;IGLOO:Lnet/minecraft/world/gen/feature/StructureFeature;
-
RUINED_PORTAL
- Mappings:
Namespace Name Mixin selector official h
Lczd;h:Lczd;
intermediary field_24849
Lnet/minecraft/class_3195;field_24849:Lnet/minecraft/class_3195;
named RUINED_PORTAL
Lnet/minecraft/world/gen/feature/StructureFeature;RUINED_PORTAL:Lnet/minecraft/world/gen/feature/StructureFeature;
-
SHIPWRECK
- Mappings:
Namespace Name Mixin selector official i
Lczd;i:Lczd;
intermediary field_24850
Lnet/minecraft/class_3195;field_24850:Lnet/minecraft/class_3195;
named SHIPWRECK
Lnet/minecraft/world/gen/feature/StructureFeature;SHIPWRECK:Lnet/minecraft/world/gen/feature/StructureFeature;
-
SWAMP_HUT
- Mappings:
Namespace Name Mixin selector official j
Lczd;j:Lczd;
intermediary field_24851
Lnet/minecraft/class_3195;field_24851:Lnet/minecraft/class_3195;
named SWAMP_HUT
Lnet/minecraft/world/gen/feature/StructureFeature;SWAMP_HUT:Lnet/minecraft/world/gen/feature/StructureFeature;
-
STRONGHOLD
- Mappings:
Namespace Name Mixin selector official k
Lczd;k:Lczd;
intermediary field_24852
Lnet/minecraft/class_3195;field_24852:Lnet/minecraft/class_3195;
named STRONGHOLD
Lnet/minecraft/world/gen/feature/StructureFeature;STRONGHOLD:Lnet/minecraft/world/gen/feature/StructureFeature;
-
MONUMENT
- Mappings:
Namespace Name Mixin selector official l
Lczd;l:Lczd;
intermediary field_24853
Lnet/minecraft/class_3195;field_24853:Lnet/minecraft/class_3195;
named MONUMENT
Lnet/minecraft/world/gen/feature/StructureFeature;MONUMENT:Lnet/minecraft/world/gen/feature/StructureFeature;
-
OCEAN_RUIN
- Mappings:
Namespace Name Mixin selector official m
Lczd;m:Lczd;
intermediary field_24854
Lnet/minecraft/class_3195;field_24854:Lnet/minecraft/class_3195;
named OCEAN_RUIN
Lnet/minecraft/world/gen/feature/StructureFeature;OCEAN_RUIN:Lnet/minecraft/world/gen/feature/StructureFeature;
-
FORTRESS
- Mappings:
Namespace Name Mixin selector official n
Lczd;n:Lczd;
intermediary field_24855
Lnet/minecraft/class_3195;field_24855:Lnet/minecraft/class_3195;
named FORTRESS
Lnet/minecraft/world/gen/feature/StructureFeature;FORTRESS:Lnet/minecraft/world/gen/feature/StructureFeature;
-
ENDCITY
- Mappings:
Namespace Name Mixin selector official o
Lczd;o:Lczd;
intermediary field_24856
Lnet/minecraft/class_3195;field_24856:Lnet/minecraft/class_3195;
named ENDCITY
Lnet/minecraft/world/gen/feature/StructureFeature;ENDCITY:Lnet/minecraft/world/gen/feature/StructureFeature;
-
BURIED_TREASURE
- Mappings:
Namespace Name Mixin selector official p
Lczd;p:Lczd;
intermediary field_24857
Lnet/minecraft/class_3195;field_24857:Lnet/minecraft/class_3195;
named BURIED_TREASURE
Lnet/minecraft/world/gen/feature/StructureFeature;BURIED_TREASURE:Lnet/minecraft/world/gen/feature/StructureFeature;
-
VILLAGE
- Mappings:
Namespace Name Mixin selector official q
Lczd;q:Lczd;
intermediary field_24858
Lnet/minecraft/class_3195;field_24858:Lnet/minecraft/class_3195;
named VILLAGE
Lnet/minecraft/world/gen/feature/StructureFeature;VILLAGE:Lnet/minecraft/world/gen/feature/StructureFeature;
-
NETHER_FOSSIL
- Mappings:
Namespace Name Mixin selector official r
Lczd;r:Lczd;
intermediary field_24859
Lnet/minecraft/class_3195;field_24859:Lnet/minecraft/class_3195;
named NETHER_FOSSIL
Lnet/minecraft/world/gen/feature/StructureFeature;NETHER_FOSSIL:Lnet/minecraft/world/gen/feature/StructureFeature;
-
BASTION_REMNANT
- Mappings:
Namespace Name Mixin selector official s
Lczd;s:Lczd;
intermediary field_24860
Lnet/minecraft/class_3195;field_24860:Lnet/minecraft/class_3195;
named BASTION_REMNANT
Lnet/minecraft/world/gen/feature/StructureFeature;BASTION_REMNANT:Lnet/minecraft/world/gen/feature/StructureFeature;
-
field_31518
public static final int field_31518- See Also:
- Mappings:
Namespace Name Mixin selector official t
Lczd;t:I
intermediary field_31518
Lnet/minecraft/class_3195;field_31518:I
named field_31518
Lnet/minecraft/world/gen/feature/StructureFeature;field_31518:I
-
codec
private final com.mojang.serialization.Codec<ConfiguredStructureFeature<C extends FeatureConfig,StructureFeature<C extends FeatureConfig>>> codec- Mappings:
Namespace Name Mixin selector official v
Lczd;v:Lcom/mojang/serialization/Codec;
intermediary field_24863
Lnet/minecraft/class_3195;field_24863:Lcom/mojang/serialization/Codec;
named codec
Lnet/minecraft/world/gen/feature/StructureFeature;codec:Lcom/mojang/serialization/Codec;
-
piecesGenerator
- Mappings:
Namespace Name Mixin selector official w
Lczd;w:Ldfx;
intermediary field_34929
Lnet/minecraft/class_3195;field_34929:Lnet/minecraft/class_6834;
named piecesGenerator
Lnet/minecraft/world/gen/feature/StructureFeature;piecesGenerator:Lnet/minecraft/structure/StructureGeneratorFactory;
-
postProcessor
- Mappings:
Namespace Name Mixin selector official x
Lczd;x:Ldff;
intermediary field_34930
Lnet/minecraft/class_3195;field_34930:Lnet/minecraft/class_6621;
named postProcessor
Lnet/minecraft/world/gen/feature/StructureFeature;postProcessor:Lnet/minecraft/structure/PostPlacementProcessor;
-
-
Constructor Details
-
StructureFeature
public StructureFeature(com.mojang.serialization.Codec<C> configCodec, StructureGeneratorFactory<C> piecesGenerator) - Mappings:
Namespace Name Mixin selector official <init>
Lczd;<init>(Lcom/mojang/serialization/Codec;Ldfx;)V
intermediary <init>
Lnet/minecraft/class_3195;<init>(Lcom/mojang/serialization/Codec;Lnet/minecraft/class_6834;)V
named <init>
Lnet/minecraft/world/gen/feature/StructureFeature;<init>(Lcom/mojang/serialization/Codec;Lnet/minecraft/structure/StructureGeneratorFactory;)V
-
StructureFeature
public StructureFeature(com.mojang.serialization.Codec<C> configCodec, StructureGeneratorFactory<C> piecesGenerator, PostPlacementProcessor postPlacementProcessor) - Mappings:
Namespace Name Mixin selector official <init>
Lczd;<init>(Lcom/mojang/serialization/Codec;Ldfx;Ldff;)V
intermediary <init>
Lnet/minecraft/class_3195;<init>(Lcom/mojang/serialization/Codec;Lnet/minecraft/class_6834;Lnet/minecraft/class_6621;)V
named <init>
Lnet/minecraft/world/gen/feature/StructureFeature;<init>(Lcom/mojang/serialization/Codec;Lnet/minecraft/structure/StructureGeneratorFactory;Lnet/minecraft/structure/PostPlacementProcessor;)V
-
-
Method Details
-
register
private static <F extends StructureFeature<?>> F register(String name, F structureFeature, GenerationStep.Feature step) - Mappings:
Namespace Name Mixin selector official a
Lczd;a(Ljava/lang/String;Lczd;Lcts$b;)Lczd;
intermediary method_28661
Lnet/minecraft/class_3195;method_28661(Ljava/lang/String;Lnet/minecraft/class_3195;Lnet/minecraft/class_2893$class_2895;)Lnet/minecraft/class_3195;
named register
Lnet/minecraft/world/gen/feature/StructureFeature;register(Ljava/lang/String;Lnet/minecraft/world/gen/feature/StructureFeature;Lnet/minecraft/world/gen/GenerationStep$Feature;)Lnet/minecraft/world/gen/feature/StructureFeature;
-
getGenerationStep
Gets the step during which this structure will participate in world generation. Structures will generate before other features in the same generation step.- Mappings:
Namespace Name Mixin selector official a
Lczd;a()Lcts$b;
intermediary method_28663
Lnet/minecraft/class_3195;method_28663()Lnet/minecraft/class_2893$class_2895;
named getGenerationStep
Lnet/minecraft/world/gen/feature/StructureFeature;getGenerationStep()Lnet/minecraft/world/gen/GenerationStep$Feature;
-
init
public static void init()- Mappings:
Namespace Name Mixin selector official b
Lczd;b()V
intermediary method_28664
Lnet/minecraft/class_3195;method_28664()V
named init
Lnet/minecraft/world/gen/feature/StructureFeature;init()V
-
readStructureStart
@Nullable public static @Nullable StructureStart readStructureStart(StructureContext context, NbtCompound nbt, long worldSeed) - Mappings:
Namespace Name Mixin selector official a
Lczd;a(Ldfz;Lok;J)Ldfr;
intermediary method_28660
Lnet/minecraft/class_3195;method_28660(Lnet/minecraft/class_6625;Lnet/minecraft/class_2487;J)Lnet/minecraft/class_3449;
named readStructureStart
Lnet/minecraft/world/gen/feature/StructureFeature;readStructureStart(Lnet/minecraft/structure/StructureContext;Lnet/minecraft/nbt/NbtCompound;J)Lnet/minecraft/structure/StructureStart;
-
getCodec
- Mappings:
Namespace Name Mixin selector official c
Lczd;c()Lcom/mojang/serialization/Codec;
intermediary method_28665
Lnet/minecraft/class_3195;method_28665()Lcom/mojang/serialization/Codec;
named getCodec
Lnet/minecraft/world/gen/feature/StructureFeature;getCodec()Lcom/mojang/serialization/Codec;
-
configure
public ConfiguredStructureFeature<C,? extends StructureFeature<C>> configure(C config, TagKey<Biome> biomeTag) - Mappings:
Namespace Name Mixin selector official a
Lczd;a(Lczz;Laif;)Lcwr;
intermediary method_28659
Lnet/minecraft/class_3195;method_28659(Lnet/minecraft/class_3037;Lnet/minecraft/class_6862;)Lnet/minecraft/class_5312;
named configure
Lnet/minecraft/world/gen/feature/StructureFeature;configure(Lnet/minecraft/world/gen/feature/FeatureConfig;Lnet/minecraft/tag/TagKey;)Lnet/minecraft/world/gen/feature/ConfiguredStructureFeature;
-
configure
public ConfiguredStructureFeature<C,? extends StructureFeature<C>> configure(C config, TagKey<Biome> biomeTag, boolean bool) - Mappings:
Namespace Name Mixin selector official a
Lczd;a(Lczz;Laif;Z)Lcwr;
intermediary method_41134
Lnet/minecraft/class_3195;method_41134(Lnet/minecraft/class_3037;Lnet/minecraft/class_6862;Z)Lnet/minecraft/class_5312;
named configure
Lnet/minecraft/world/gen/feature/StructureFeature;configure(Lnet/minecraft/world/gen/feature/FeatureConfig;Lnet/minecraft/tag/TagKey;Z)Lnet/minecraft/world/gen/feature/ConfiguredStructureFeature;
-
configure
public ConfiguredStructureFeature<C,? extends StructureFeature<C>> configure(C config, TagKey<Biome> biomeTag, Map<SpawnGroup, StructureSpawns> map) - Mappings:
Namespace Name Mixin selector official a
Lczd;a(Lczz;Laif;Ljava/util/Map;)Lcwr;
intermediary method_41133
Lnet/minecraft/class_3195;method_41133(Lnet/minecraft/class_3037;Lnet/minecraft/class_6862;Ljava/util/Map;)Lnet/minecraft/class_5312;
named configure
Lnet/minecraft/world/gen/feature/StructureFeature;configure(Lnet/minecraft/world/gen/feature/FeatureConfig;Lnet/minecraft/tag/TagKey;Ljava/util/Map;)Lnet/minecraft/world/gen/feature/ConfiguredStructureFeature;
-
configure
public ConfiguredStructureFeature<C,? extends StructureFeature<C>> configure(C config, TagKey<Biome> biomeTag, boolean bool, Map<SpawnGroup, StructureSpawns> map) - Mappings:
Namespace Name Mixin selector official a
Lczd;a(Lczz;Laif;ZLjava/util/Map;)Lcwr;
intermediary method_41135
Lnet/minecraft/class_3195;method_41135(Lnet/minecraft/class_3037;Lnet/minecraft/class_6862;ZLjava/util/Map;)Lnet/minecraft/class_5312;
named configure
Lnet/minecraft/world/gen/feature/StructureFeature;configure(Lnet/minecraft/world/gen/feature/FeatureConfig;Lnet/minecraft/tag/TagKey;ZLjava/util/Map;)Lnet/minecraft/world/gen/feature/ConfiguredStructureFeature;
-
getLocatedPos
Returns a block position for feature location.- Returns:
- a block position for feature location
- Mappings:
Namespace Name Mixin selector official a
Lczd;a(Ldge;Lcac;)Lgj;
intermediary method_38671
Lnet/minecraft/class_3195;method_38671(Lnet/minecraft/class_6872;Lnet/minecraft/class_1923;)Lnet/minecraft/class_2338;
named getLocatedPos
Lnet/minecraft/world/gen/feature/StructureFeature;getLocatedPos(Lnet/minecraft/world/gen/chunk/placement/RandomSpreadStructurePlacement;Lnet/minecraft/util/math/ChunkPos;)Lnet/minecraft/util/math/BlockPos;
-
canGenerate
public boolean canGenerate(DynamicRegistryManager registryManager, ChunkGenerator chunkGenerator, BiomeSource biomeSource, StructureManager structureManager, long worldSeed, ChunkPos pos, C config, HeightLimitView world, Predicate<RegistryEntry<Biome>> biomePredicate) - Mappings:
Namespace Name Mixin selector official a
Lczd;a(Lhc;Lcqr;Lcbv;Ldhr;JLcac;Lczz;Lcax;Ljava/util/function/Predicate;)Z
intermediary method_39821
Lnet/minecraft/class_3195;method_39821(Lnet/minecraft/class_5455;Lnet/minecraft/class_2794;Lnet/minecraft/class_1966;Lnet/minecraft/class_3485;JLnet/minecraft/class_1923;Lnet/minecraft/class_3037;Lnet/minecraft/class_5539;Ljava/util/function/Predicate;)Z
named canGenerate
Lnet/minecraft/world/gen/feature/StructureFeature;canGenerate(Lnet/minecraft/util/registry/DynamicRegistryManager;Lnet/minecraft/world/gen/chunk/ChunkGenerator;Lnet/minecraft/world/biome/source/BiomeSource;Lnet/minecraft/structure/StructureManager;JLnet/minecraft/util/math/ChunkPos;Lnet/minecraft/world/gen/feature/FeatureConfig;Lnet/minecraft/world/HeightLimitView;Ljava/util/function/Predicate;)Z
-
method_41138
- Mappings:
Namespace Name Mixin selector official d
Lczd;d()Ldfx;
intermediary method_41138
Lnet/minecraft/class_3195;method_41138()Lnet/minecraft/class_6834;
named method_41138
Lnet/minecraft/world/gen/feature/StructureFeature;method_41138()Lnet/minecraft/structure/StructureGeneratorFactory;
-
getPostProcessor
- Mappings:
Namespace Name Mixin selector official e
Lczd;e()Ldff;
intermediary method_38690
Lnet/minecraft/class_3195;method_38690()Lnet/minecraft/class_6621;
named getPostProcessor
Lnet/minecraft/world/gen/feature/StructureFeature;getPostProcessor()Lnet/minecraft/structure/PostPlacementProcessor;
-