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 cviintermediary net/minecraft/class_5444named net/minecraft/world/gen/decorator/DecoratorContext
-
Field Summary
Fields Modifier and Type Field Description private ChunkGeneratorgeneratorprivate StructureWorldAccessworld -
Constructor Summary
Constructors Constructor Description DecoratorContext(StructureWorldAccess world, ChunkGenerator generator) -
Method Summary
Modifier and Type Method Description BlockStategetBlockState(BlockPos pos)intgetBottomY()Returns the bottom Y level, or height, inclusive, of this view.intgetHeight()intgetMaxY()BitSetgetOrCreateCarvingMask(ChunkPos chunkPos, GenerationStep.Carver carver)intgetSeaLevel()intgetTopY(Heightmap.Type heightmap, int x, int z)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.HeightLimitView
countVerticalSections, getBottomSectionCoord, getSectionIndex, getTopSectionCoord, getTopY, isOutOfHeightLimit, isOutOfHeightLimit, sectionCoordToIndex, sectionIndexToCoord
-
Field Details
-
world
- Mappings:
Namespace Name Mixin selector official aLcvi;a:Lbuq;intermediary field_25857Lnet/minecraft/class_5444;field_25857:Lnet/minecraft/class_5281;named worldLnet/minecraft/world/gen/decorator/DecoratorContext;world:Lnet/minecraft/world/StructureWorldAccess;
-
generator
- Mappings:
Namespace Name Mixin selector official bLcvi;b:Lcjn;intermediary field_25858Lnet/minecraft/class_5444;field_25858:Lnet/minecraft/class_2794;named generatorLnet/minecraft/world/gen/decorator/DecoratorContext;generator:Lnet/minecraft/world/gen/chunk/ChunkGenerator;
-
-
Constructor Details
-
DecoratorContext
- Mappings:
Namespace Name Mixin selector official <init>Lcvi;<init>(Lbuq;Lcjn;)Vintermediary <init>Lnet/minecraft/class_5444;<init>(Lnet/minecraft/class_5281;Lnet/minecraft/class_2794;)Vnamed <init>Lnet/minecraft/world/gen/decorator/DecoratorContext;<init>(Lnet/minecraft/world/StructureWorldAccess;Lnet/minecraft/world/gen/chunk/ChunkGenerator;)V
-
-
Method Details
-
getTopY
- Mappings:
Namespace Name Mixin selector official aLcvi;a(Lcmm$a;II)Iintermediary method_30460Lnet/minecraft/class_5444;method_30460(Lnet/minecraft/class_2902$class_2903;II)Inamed getTopYLnet/minecraft/world/gen/decorator/DecoratorContext;getTopY(Lnet/minecraft/world/Heightmap$Type;II)I
-
getMaxY
public int getMaxY()- Mappings:
Namespace Name Mixin selector official aLcvi;a()Iintermediary method_30458Lnet/minecraft/class_5444;method_30458()Inamed getMaxYLnet/minecraft/world/gen/decorator/DecoratorContext;getMaxY()I
-
getSeaLevel
public int getSeaLevel()- Mappings:
Namespace Name Mixin selector official bLcvi;b()Iintermediary method_30462Lnet/minecraft/class_5444;method_30462()Inamed getSeaLevelLnet/minecraft/world/gen/decorator/DecoratorContext;getSeaLevel()I
-
getOrCreateCarvingMask
- Mappings:
Namespace Name Mixin selector official aLcvi;a(Lbta;Lcmi$a;)Ljava/util/BitSet;intermediary method_30459Lnet/minecraft/class_5444;method_30459(Lnet/minecraft/class_1923;Lnet/minecraft/class_2893$class_2894;)Ljava/util/BitSet;named getOrCreateCarvingMaskLnet/minecraft/world/gen/decorator/DecoratorContext;getOrCreateCarvingMask(Lnet/minecraft/util/math/ChunkPos;Lnet/minecraft/world/gen/GenerationStep$Carver;)Ljava/util/BitSet;
-
getBlockState
- Mappings:
Namespace Name Mixin selector official aLcvi;a(Lfx;)Lcht;intermediary method_30461Lnet/minecraft/class_5444;method_30461(Lnet/minecraft/class_2338;)Lnet/minecraft/class_2680;named getBlockStateLnet/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:
getBottomYin interfaceHeightLimitView- See Also:
HeightLimitView.getTopY(),HeightLimitView.getHeight()- Mappings:
Namespace Name Mixin selector official w_Lbtx;w_()Iintermediary method_31607Lnet/minecraft/class_5539;method_31607()Inamed getBottomYLnet/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:
getHeightin interfaceHeightLimitView- Returns:
- the difference in the minimum and maximum height
- See Also:
HeightLimitView.getBottomY(),HeightLimitView.getTopY()- Mappings:
Namespace Name Mixin selector official mLbtx;m()Iintermediary method_31605Lnet/minecraft/class_5539;method_31605()Inamed getHeightLnet/minecraft/world/HeightLimitView;getHeight()I
-