Class FeaturePlacementContext

java.lang.Object
net.minecraft.world.gen.HeightContext
net.minecraft.world.gen.feature.FeaturePlacementContext

public class FeaturePlacementContext extends HeightContext
Mappings:
Namespace Name
named net/minecraft/world/gen/feature/FeaturePlacementContext
intermediary net/minecraft/class_5444
official ehr
  • Field Details

    • world

      private final StructureWorldAccess world
      Mappings:
      Namespace Name Mixin selector
      named world Lnet/minecraft/world/gen/feature/FeaturePlacementContext;world:Lnet/minecraft/world/StructureWorldAccess;
      intermediary field_25857 Lnet/minecraft/class_5444;field_25857:Lnet/minecraft/class_5281;
      official a Lehr;a:Ldcv;
    • generator

      private final ChunkGenerator generator
      Mappings:
      Namespace Name Mixin selector
      named generator Lnet/minecraft/world/gen/feature/FeaturePlacementContext;generator:Lnet/minecraft/world/gen/chunk/ChunkGenerator;
      intermediary field_35734 Lnet/minecraft/class_5444;field_35734:Lnet/minecraft/class_2794;
      official b Lehr;b:Ldub;
    • placedFeature

      private final Optional<PlacedFeature> placedFeature
      Mappings:
      Namespace Name Mixin selector
      named placedFeature Lnet/minecraft/world/gen/feature/FeaturePlacementContext;placedFeature:Ljava/util/Optional;
      intermediary field_35735 Lnet/minecraft/class_5444;field_35735:Ljava/util/Optional;
      official c Lehr;c:Ljava/util/Optional;
  • Constructor Details

    • FeaturePlacementContext

      public FeaturePlacementContext(StructureWorldAccess world, ChunkGenerator generator, Optional<PlacedFeature> placedFeature)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/world/gen/feature/FeaturePlacementContext;<init>(Lnet/minecraft/world/StructureWorldAccess;Lnet/minecraft/world/gen/chunk/ChunkGenerator;Ljava/util/Optional;)V
      intermediary <init> Lnet/minecraft/class_5444;<init>(Lnet/minecraft/class_5281;Lnet/minecraft/class_2794;Ljava/util/Optional;)V
      official <init> Lehr;<init>(Ldcv;Ldub;Ljava/util/Optional;)V
  • Method Details

    • getTopY

      public int getTopY(Heightmap.Type heightmap, int x, int z)
      Mappings:
      Namespace Name Mixin selector
      named getTopY Lnet/minecraft/world/gen/feature/FeaturePlacementContext;getTopY(Lnet/minecraft/world/Heightmap$Type;II)I
      intermediary method_30460 Lnet/minecraft/class_5444;method_30460(Lnet/minecraft/class_2902$class_2903;II)I
      official a Lehr;a(Ldxw$a;II)I
    • getOrCreateCarvingMask

      public CarvingMask getOrCreateCarvingMask(ChunkPos chunkPos, GenerationStep.Carver carver)
      Mappings:
      Namespace Name Mixin selector
      named getOrCreateCarvingMask Lnet/minecraft/world/gen/feature/FeaturePlacementContext;getOrCreateCarvingMask(Lnet/minecraft/util/math/ChunkPos;Lnet/minecraft/world/gen/GenerationStep$Carver;)Lnet/minecraft/world/gen/carver/CarvingMask;
      intermediary method_30459 Lnet/minecraft/class_5444;method_30459(Lnet/minecraft/class_1923;Lnet/minecraft/class_2893$class_2894;)Lnet/minecraft/class_6643;
      official a Lehr;a(Ldbh;Ldxs$a;)Ldtz;
    • getBlockState

      public BlockState getBlockState(BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      named getBlockState Lnet/minecraft/world/gen/feature/FeaturePlacementContext;getBlockState(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/BlockState;
      intermediary method_30461 Lnet/minecraft/class_5444;method_30461(Lnet/minecraft/class_2338;)Lnet/minecraft/class_2680;
      official a Lehr;a(Liz;)Ldse;
    • getBottomY

      public int getBottomY()
      Mappings:
      Namespace Name Mixin selector
      named getBottomY Lnet/minecraft/world/gen/feature/FeaturePlacementContext;getBottomY()I
      intermediary method_33868 Lnet/minecraft/class_5444;method_33868()I
      official c Lehr;c()I
    • getWorld

      public StructureWorldAccess getWorld()
      Mappings:
      Namespace Name Mixin selector
      named getWorld Lnet/minecraft/world/gen/feature/FeaturePlacementContext;getWorld()Lnet/minecraft/world/StructureWorldAccess;
      intermediary method_34383 Lnet/minecraft/class_5444;method_34383()Lnet/minecraft/class_5281;
      official d Lehr;d()Ldcv;
    • getPlacedFeature

      public Optional<PlacedFeature> getPlacedFeature()
      Mappings:
      Namespace Name Mixin selector
      named getPlacedFeature Lnet/minecraft/world/gen/feature/FeaturePlacementContext;getPlacedFeature()Ljava/util/Optional;
      intermediary method_39652 Lnet/minecraft/class_5444;method_39652()Ljava/util/Optional;
      official e Lehr;e()Ljava/util/Optional;
    • getChunkGenerator

      public ChunkGenerator getChunkGenerator()
      Mappings:
      Namespace Name Mixin selector
      named getChunkGenerator Lnet/minecraft/world/gen/feature/FeaturePlacementContext;getChunkGenerator()Lnet/minecraft/world/gen/chunk/ChunkGenerator;
      intermediary method_39653 Lnet/minecraft/class_5444;method_39653()Lnet/minecraft/class_2794;
      official f Lehr;f()Ldub;