Package net.minecraft.world.gen.feature
Class FeaturePlacementContext
java.lang.Object
net.minecraft.world.gen.HeightContext
net.minecraft.world.gen.feature.FeaturePlacementContext
- Mappings:
Namespace Name official drcintermediary net/minecraft/class_5444named net/minecraft/world/gen/feature/FeaturePlacementContext
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ChunkGeneratorprivate final Optional<PlacedFeature>private final StructureWorldAccess -
Constructor Summary
ConstructorsConstructorDescriptionFeaturePlacementContext(StructureWorldAccess world, ChunkGenerator generator, Optional<PlacedFeature> placedFeature) -
Method Summary
Modifier and TypeMethodDescriptiongetBlockState(BlockPos pos) intgetOrCreateCarvingMask(ChunkPos chunkPos, GenerationStep.Carver carver) intgetTopY(Heightmap.Type heightmap, int x, int z) getWorld()Methods inherited from class net.minecraft.world.gen.HeightContext
getHeight, getMinY
-
Field Details
-
world
- Mappings:
Namespace Name Mixin selector official aLdrc;a:Lcne;intermediary field_25857Lnet/minecraft/class_5444;field_25857:Lnet/minecraft/class_5281;named worldLnet/minecraft/world/gen/feature/FeaturePlacementContext;world:Lnet/minecraft/world/StructureWorldAccess;
-
generator
- Mappings:
Namespace Name Mixin selector official bLdrc;b:Lddv;intermediary field_35734Lnet/minecraft/class_5444;field_35734:Lnet/minecraft/class_2794;named generatorLnet/minecraft/world/gen/feature/FeaturePlacementContext;generator:Lnet/minecraft/world/gen/chunk/ChunkGenerator;
-
placedFeature
- Mappings:
Namespace Name Mixin selector official cLdrc;c:Ljava/util/Optional;intermediary field_35735Lnet/minecraft/class_5444;field_35735:Ljava/util/Optional;named placedFeatureLnet/minecraft/world/gen/feature/FeaturePlacementContext;placedFeature:Ljava/util/Optional;
-
-
Constructor Details
-
FeaturePlacementContext
public FeaturePlacementContext(StructureWorldAccess world, ChunkGenerator generator, Optional<PlacedFeature> placedFeature) - Mappings:
Namespace Name Mixin selector official <init>Ldrc;<init>(Lcne;Lddv;Ljava/util/Optional;)Vintermediary <init>Lnet/minecraft/class_5444;<init>(Lnet/minecraft/class_5281;Lnet/minecraft/class_2794;Ljava/util/Optional;)Vnamed <init>Lnet/minecraft/world/gen/feature/FeaturePlacementContext;<init>(Lnet/minecraft/world/StructureWorldAccess;Lnet/minecraft/world/gen/chunk/ChunkGenerator;Ljava/util/Optional;)V
-
-
Method Details
-
getTopY
- Mappings:
Namespace Name Mixin selector official aLdrc;a(Ldhh$a;II)Iintermediary method_30460Lnet/minecraft/class_5444;method_30460(Lnet/minecraft/class_2902$class_2903;II)Inamed getTopYLnet/minecraft/world/gen/feature/FeaturePlacementContext;getTopY(Lnet/minecraft/world/Heightmap$Type;II)I
-
getOrCreateCarvingMask
- Mappings:
Namespace Name Mixin selector official aLdrc;a(Lclr;Ldhd$a;)Lddt;intermediary method_30459Lnet/minecraft/class_5444;method_30459(Lnet/minecraft/class_1923;Lnet/minecraft/class_2893$class_2894;)Lnet/minecraft/class_6643;named getOrCreateCarvingMaskLnet/minecraft/world/gen/feature/FeaturePlacementContext;getOrCreateCarvingMask(Lnet/minecraft/util/math/ChunkPos;Lnet/minecraft/world/gen/GenerationStep$Carver;)Lnet/minecraft/world/gen/carver/CarvingMask;
-
getBlockState
- Mappings:
Namespace Name Mixin selector official aLdrc;a(Lgu;)Ldby;intermediary method_30461Lnet/minecraft/class_5444;method_30461(Lnet/minecraft/class_2338;)Lnet/minecraft/class_2680;named getBlockStateLnet/minecraft/world/gen/feature/FeaturePlacementContext;getBlockState(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/BlockState;
-
getBottomY
public int getBottomY()- Mappings:
Namespace Name Mixin selector official cLdrc;c()Iintermediary method_33868Lnet/minecraft/class_5444;method_33868()Inamed getBottomYLnet/minecraft/world/gen/feature/FeaturePlacementContext;getBottomY()I
-
getWorld
- Mappings:
Namespace Name Mixin selector official dLdrc;d()Lcne;intermediary method_34383Lnet/minecraft/class_5444;method_34383()Lnet/minecraft/class_5281;named getWorldLnet/minecraft/world/gen/feature/FeaturePlacementContext;getWorld()Lnet/minecraft/world/StructureWorldAccess;
-
getPlacedFeature
- Mappings:
Namespace Name Mixin selector official eLdrc;e()Ljava/util/Optional;intermediary method_39652Lnet/minecraft/class_5444;method_39652()Ljava/util/Optional;named getPlacedFeatureLnet/minecraft/world/gen/feature/FeaturePlacementContext;getPlacedFeature()Ljava/util/Optional;
-
getChunkGenerator
- Mappings:
Namespace Name Mixin selector official fLdrc;f()Lddv;intermediary method_39653Lnet/minecraft/class_5444;method_39653()Lnet/minecraft/class_2794;named getChunkGeneratorLnet/minecraft/world/gen/feature/FeaturePlacementContext;getChunkGenerator()Lnet/minecraft/world/gen/chunk/ChunkGenerator;
-