Class DecoratorContext

java.lang.Object
net.minecraft.world.gen.decorator.DecoratorContext
All Implemented Interfaces:
HeightLimitView

public class DecoratorContext
extends Object
implements HeightLimitView
Mappings:
Namespace Name
official cvl
intermediary net/minecraft/class_5444
named net/minecraft/world/gen/decorator/DecoratorContext
  • Field Details

    • world

      private final StructureWorldAccess world
      Mappings:
      Namespace Name Mixin selector
      official a Lcvl;a:Lbur;
      intermediary field_25857 Lnet/minecraft/class_5444;field_25857:Lnet/minecraft/class_5281;
      named world Lnet/minecraft/world/gen/decorator/DecoratorContext;world:Lnet/minecraft/world/StructureWorldAccess;
    • generator

      private final ChunkGenerator generator
      Mappings:
      Namespace Name Mixin selector
      official b Lcvl;b:Lcjo;
      intermediary field_25858 Lnet/minecraft/class_5444;field_25858:Lnet/minecraft/class_2794;
      named generator Lnet/minecraft/world/gen/decorator/DecoratorContext;generator:Lnet/minecraft/world/gen/chunk/ChunkGenerator;
  • Constructor Details

    • DecoratorContext

      public DecoratorContext​(StructureWorldAccess world, ChunkGenerator generator)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcvl;<init>(Lbur;Lcjo;)V
      intermediary <init> Lnet/minecraft/class_5444;<init>(Lnet/minecraft/class_5281;Lnet/minecraft/class_2794;)V
      named <init> Lnet/minecraft/world/gen/decorator/DecoratorContext;<init>(Lnet/minecraft/world/StructureWorldAccess;Lnet/minecraft/world/gen/chunk/ChunkGenerator;)V
  • Method Details

    • getTopY

      public int getTopY​(Heightmap.Type heightmap, int x, int z)
      Mappings:
      Namespace Name Mixin selector
      official a Lcvl;a(Lcmp$a;II)I
      intermediary method_30460 Lnet/minecraft/class_5444;method_30460(Lnet/minecraft/class_2902$class_2903;II)I
      named getTopY Lnet/minecraft/world/gen/decorator/DecoratorContext;getTopY(Lnet/minecraft/world/Heightmap$Type;II)I
    • getMaxY

      public int getMaxY()
      Mappings:
      Namespace Name Mixin selector
      official a Lcvl;a()I
      intermediary method_30458 Lnet/minecraft/class_5444;method_30458()I
      named getMaxY Lnet/minecraft/world/gen/decorator/DecoratorContext;getMaxY()I
    • getSeaLevel

      public int getSeaLevel()
      Mappings:
      Namespace Name Mixin selector
      official b Lcvl;b()I
      intermediary method_30462 Lnet/minecraft/class_5444;method_30462()I
      named getSeaLevel Lnet/minecraft/world/gen/decorator/DecoratorContext;getSeaLevel()I
    • getOrCreateCarvingMask

      public BitSet getOrCreateCarvingMask​(ChunkPos chunkPos, GenerationStep.Carver carver)
      Mappings:
      Namespace Name Mixin selector
      official a Lcvl;a(Lbtb;Lcml$a;)Ljava/util/BitSet;
      intermediary method_30459 Lnet/minecraft/class_5444;method_30459(Lnet/minecraft/class_1923;Lnet/minecraft/class_2893$class_2894;)Ljava/util/BitSet;
      named getOrCreateCarvingMask Lnet/minecraft/world/gen/decorator/DecoratorContext;getOrCreateCarvingMask(Lnet/minecraft/util/math/ChunkPos;Lnet/minecraft/world/gen/GenerationStep$Carver;)Ljava/util/BitSet;
    • getBlockState

      public BlockState getBlockState​(BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official a Lcvl;a(Lfx;)Lchu;
      intermediary method_30461 Lnet/minecraft/class_5444;method_30461(Lnet/minecraft/class_2338;)Lnet/minecraft/class_2680;
      named getBlockState Lnet/minecraft/world/gen/decorator/DecoratorContext;getBlockState(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/BlockState;
    • getBottomY

      public int getBottomY()
      Returns the bottom Y level, or height, inclusive, of this view.
      Specified by:
      getBottomY in interface HeightLimitView
      See Also:
      HeightLimitView.getTopY(), HeightLimitView.getHeight()
      Mappings:
      Namespace Name Mixin selector
      official w_ Lbty;w_()I
      intermediary method_31607 Lnet/minecraft/class_5539;method_31607()I
      named getBottomY Lnet/minecraft/world/HeightLimitView;getBottomY()I
    • getHeight

      public int getHeight()
      Returns the difference in the minimum and maximum height.

      This is the number of blocks that can be modified in any vertical column within the view, or the vertical size, in blocks, of the view.

      Specified by:
      getHeight in interface HeightLimitView
      Returns:
      the difference in the minimum and maximum height
      See Also:
      HeightLimitView.getBottomY(), HeightLimitView.getTopY()
      Mappings:
      Namespace Name Mixin selector
      official m Lbty;m()I
      intermediary method_31605 Lnet/minecraft/class_5539;method_31605()I
      named getHeight Lnet/minecraft/world/HeightLimitView;getHeight()I