Class ProtoChunk

java.lang.Object
net.minecraft.world.chunk.Chunk
net.minecraft.world.chunk.ProtoChunk
All Implemented Interfaces:
BiomeAccess.Storage, BlockView, LightSourceView, HeightLimitView, StructureHolder
Direct Known Subclasses:
WrapperProtoChunk

public class ProtoChunk extends Chunk
Mappings:
Namespace Name
named net/minecraft/world/chunk/ProtoChunk
intermediary net/minecraft/class_2839
official dvs
  • Field Details

    • lightingProvider

      @Nullable private volatile @Nullable LightingProvider lightingProvider
      Mappings:
      Namespace Name Mixin selector
      named lightingProvider Lnet/minecraft/world/chunk/ProtoChunk;lightingProvider:Lnet/minecraft/world/chunk/light/LightingProvider;
      intermediary field_17105 Lnet/minecraft/class_2839;field_17105:Lnet/minecraft/class_3568;
      official n Ldvs;n:Leot;
    • status

      private volatile ChunkStatus status
      Mappings:
      Namespace Name Mixin selector
      named status Lnet/minecraft/world/chunk/ProtoChunk;status:Lnet/minecraft/world/chunk/ChunkStatus;
      intermediary field_12918 Lnet/minecraft/class_2839;field_12918:Lnet/minecraft/class_2806;
      official o Ldvs;o:Ldvz;
    • entities

      private final List<NbtCompound> entities
      Mappings:
      Namespace Name Mixin selector
      named entities Lnet/minecraft/world/chunk/ProtoChunk;entities:Ljava/util/List;
      intermediary field_12929 Lnet/minecraft/class_2839;field_12929:Ljava/util/List;
      official p Ldvs;p:Ljava/util/List;
    • carvingMasks

      private final Map<GenerationStep.Carver,CarvingMask> carvingMasks
      Mappings:
      Namespace Name Mixin selector
      named carvingMasks Lnet/minecraft/world/chunk/ProtoChunk;carvingMasks:Ljava/util/Map;
      intermediary field_12926 Lnet/minecraft/class_2839;field_12926:Ljava/util/Map;
      official q Ldvs;q:Ljava/util/Map;
    • belowZeroRetrogen

      @Nullable private @Nullable BelowZeroRetrogen belowZeroRetrogen
      Mappings:
      Namespace Name Mixin selector
      named belowZeroRetrogen Lnet/minecraft/world/chunk/ProtoChunk;belowZeroRetrogen:Lnet/minecraft/world/chunk/BelowZeroRetrogen;
      intermediary field_35473 Lnet/minecraft/class_2839;field_35473:Lnet/minecraft/class_6746;
      official r Ldvs;r:Ldym;
    • blockTickScheduler

      private final SimpleTickScheduler<Block> blockTickScheduler
      Mappings:
      Namespace Name Mixin selector
      named blockTickScheduler Lnet/minecraft/world/chunk/ProtoChunk;blockTickScheduler:Lnet/minecraft/world/tick/SimpleTickScheduler;
      intermediary field_35474 Lnet/minecraft/class_2839;field_35474:Lnet/minecraft/class_4296;
      official s Ldvs;s:Leyr;
    • fluidTickScheduler

      private final SimpleTickScheduler<Fluid> fluidTickScheduler
      Mappings:
      Namespace Name Mixin selector
      named fluidTickScheduler Lnet/minecraft/world/chunk/ProtoChunk;fluidTickScheduler:Lnet/minecraft/world/tick/SimpleTickScheduler;
      intermediary field_35475 Lnet/minecraft/class_2839;field_35475:Lnet/minecraft/class_4296;
      official t Ldvs;t:Leyr;
  • Constructor Details

    • ProtoChunk

      public ProtoChunk(ChunkPos pos, UpgradeData upgradeData, HeightLimitView world, Registry<Biome> biomeRegistry, @Nullable @Nullable BlendingData blendingData)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/world/chunk/ProtoChunk;<init>(Lnet/minecraft/util/math/ChunkPos;Lnet/minecraft/world/chunk/UpgradeData;Lnet/minecraft/world/HeightLimitView;Lnet/minecraft/registry/Registry;Lnet/minecraft/world/gen/chunk/BlendingData;)V
      intermediary <init> Lnet/minecraft/class_2839;<init>(Lnet/minecraft/class_1923;Lnet/minecraft/class_2843;Lnet/minecraft/class_5539;Lnet/minecraft/class_2378;Lnet/minecraft/class_6749;)V
      official <init> Ldvs;<init>(Ldcd;Ldvv;Ldcy;Ljz;Leab;)V
    • ProtoChunk

      public ProtoChunk(ChunkPos pos, UpgradeData upgradeData, @Nullable @Nullable ChunkSection[] sections, SimpleTickScheduler<Block> blockTickScheduler, SimpleTickScheduler<Fluid> fluidTickScheduler, HeightLimitView world, Registry<Biome> biomeRegistry, @Nullable @Nullable BlendingData blendingData)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/world/chunk/ProtoChunk;<init>(Lnet/minecraft/util/math/ChunkPos;Lnet/minecraft/world/chunk/UpgradeData;[Lnet/minecraft/world/chunk/ChunkSection;Lnet/minecraft/world/tick/SimpleTickScheduler;Lnet/minecraft/world/tick/SimpleTickScheduler;Lnet/minecraft/world/HeightLimitView;Lnet/minecraft/registry/Registry;Lnet/minecraft/world/gen/chunk/BlendingData;)V
      intermediary <init> Lnet/minecraft/class_2839;<init>(Lnet/minecraft/class_1923;Lnet/minecraft/class_2843;[Lnet/minecraft/class_2826;Lnet/minecraft/class_4296;Lnet/minecraft/class_4296;Lnet/minecraft/class_5539;Lnet/minecraft/class_2378;Lnet/minecraft/class_6749;)V
      official <init> Ldvs;<init>(Ldcd;Ldvv;[Ldvj;Leyr;Leyr;Ldcy;Ljz;Leab;)V
  • Method Details

    • getBlockTickScheduler

      public BasicTickScheduler<Block> getBlockTickScheduler()
      Specified by:
      getBlockTickScheduler in class Chunk
      Mappings:
      Namespace Name Mixin selector
      named getBlockTickScheduler Lnet/minecraft/world/chunk/Chunk;getBlockTickScheduler()Lnet/minecraft/world/tick/BasicTickScheduler;
      intermediary method_12013 Lnet/minecraft/class_2791;method_12013()Lnet/minecraft/class_6763;
      official o Lduy;o()Leyw;
    • getFluidTickScheduler

      public BasicTickScheduler<Fluid> getFluidTickScheduler()
      Specified by:
      getFluidTickScheduler in class Chunk
      Mappings:
      Namespace Name Mixin selector
      named getFluidTickScheduler Lnet/minecraft/world/chunk/Chunk;getFluidTickScheduler()Lnet/minecraft/world/tick/BasicTickScheduler;
      intermediary method_12014 Lnet/minecraft/class_2791;method_12014()Lnet/minecraft/class_6763;
      official p Lduy;p()Leyw;
    • getTickSchedulers

      public Chunk.TickSchedulers getTickSchedulers()
      Specified by:
      getTickSchedulers in class Chunk
      Mappings:
      Namespace Name Mixin selector
      named getTickSchedulers Lnet/minecraft/world/chunk/Chunk;getTickSchedulers()Lnet/minecraft/world/chunk/Chunk$TickSchedulers;
      intermediary method_39296 Lnet/minecraft/class_2791;method_39296()Lnet/minecraft/class_2791$class_6745;
      official q Lduy;q()Lduy$a;
    • getBlockState

      public BlockState getBlockState(BlockPos pos)
      Returns the block state at pos.
      Returns:
      the block state at pos
      Implementation Note:
      This returns the block state for Blocks.VOID_AIR if the Y coordinate is outside the height limit.
      Mappings:
      Namespace Name Mixin selector
      named getBlockState Lnet/minecraft/world/BlockView;getBlockState(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/BlockState;
      intermediary method_8320 Lnet/minecraft/class_1922;method_8320(Lnet/minecraft/class_2338;)Lnet/minecraft/class_2680;
      official a_ Ldcc;a_(Ljd;)Ldtc;
    • getFluidState

      public FluidState getFluidState(BlockPos pos)
      Returns the fluid state at pos.
      Returns:
      the fluid state at pos
      Implementation Note:
      This returns the fluid state for Fluids.EMPTY if the Y coordinate is outside the height limit.
      Mappings:
      Namespace Name Mixin selector
      named getFluidState Lnet/minecraft/world/BlockView;getFluidState(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/fluid/FluidState;
      intermediary method_8316 Lnet/minecraft/class_1922;method_8316(Lnet/minecraft/class_2338;)Lnet/minecraft/class_3610;
      official b_ Ldcc;b_(Ljd;)Lepe;
    • setBlockState

      @Nullable public @Nullable BlockState setBlockState(BlockPos pos, BlockState state, boolean moved)
      Specified by:
      setBlockState in class Chunk
      Mappings:
      Namespace Name Mixin selector
      named setBlockState Lnet/minecraft/world/chunk/Chunk;setBlockState(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Z)Lnet/minecraft/block/BlockState;
      intermediary method_12010 Lnet/minecraft/class_2791;method_12010(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Z)Lnet/minecraft/class_2680;
      official a Lduy;a(Ljd;Ldtc;Z)Ldtc;
    • setBlockEntity

      public void setBlockEntity(BlockEntity blockEntity)
      Specified by:
      setBlockEntity in class Chunk
      Mappings:
      Namespace Name Mixin selector
      named setBlockEntity Lnet/minecraft/world/chunk/Chunk;setBlockEntity(Lnet/minecraft/block/entity/BlockEntity;)V
      intermediary method_12007 Lnet/minecraft/class_2791;method_12007(Lnet/minecraft/class_2586;)V
      official a Lduy;a(Ldqh;)V
    • getBlockEntity

      @Nullable public @Nullable BlockEntity getBlockEntity(BlockPos pos)
      Returns the block entity at pos, or null if there is none.
      Returns:
      the block entity at pos, or null if there is none
      Mappings:
      Namespace Name Mixin selector
      named getBlockEntity Lnet/minecraft/world/BlockView;getBlockEntity(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/entity/BlockEntity;
      intermediary method_8321 Lnet/minecraft/class_1922;method_8321(Lnet/minecraft/class_2338;)Lnet/minecraft/class_2586;
      official c_ Ldcc;c_(Ljd;)Ldqh;
    • getBlockEntities

      public Map<BlockPos,BlockEntity> getBlockEntities()
      Mappings:
      Namespace Name Mixin selector
      named getBlockEntities Lnet/minecraft/world/chunk/ProtoChunk;getBlockEntities()Ljava/util/Map;
      intermediary method_12309 Lnet/minecraft/class_2839;method_12309()Ljava/util/Map;
      official D Ldvs;D()Ljava/util/Map;
    • addEntity

      public void addEntity(NbtCompound entityNbt)
      Mappings:
      Namespace Name Mixin selector
      named addEntity Lnet/minecraft/world/chunk/ProtoChunk;addEntity(Lnet/minecraft/nbt/NbtCompound;)V
      intermediary method_12302 Lnet/minecraft/class_2839;method_12302(Lnet/minecraft/class_2487;)V
      official b Ldvs;b(Lub;)V
    • addEntity

      public void addEntity(Entity entity)
      Specified by:
      addEntity in class Chunk
      Mappings:
      Namespace Name Mixin selector
      named addEntity Lnet/minecraft/world/chunk/Chunk;addEntity(Lnet/minecraft/entity/Entity;)V
      intermediary method_12002 Lnet/minecraft/class_2791;method_12002(Lnet/minecraft/class_1297;)V
      official a Lduy;a(Lbsr;)V
    • setStructureStart

      public void setStructureStart(Structure structure, StructureStart start)
      Specified by:
      setStructureStart in interface StructureHolder
      Overrides:
      setStructureStart in class Chunk
      Mappings:
      Namespace Name Mixin selector
      named setStructureStart Lnet/minecraft/world/StructureHolder;setStructureStart(Lnet/minecraft/world/gen/structure/Structure;Lnet/minecraft/structure/StructureStart;)V
      intermediary method_12184 Lnet/minecraft/class_2810;method_12184(Lnet/minecraft/class_3195;Lnet/minecraft/class_3449;)V
      official a Ldvu;a(Lejr;Lejz;)V
    • getEntities

      public List<NbtCompound> getEntities()
      Mappings:
      Namespace Name Mixin selector
      named getEntities Lnet/minecraft/world/chunk/ProtoChunk;getEntities()Ljava/util/List;
      intermediary method_12295 Lnet/minecraft/class_2839;method_12295()Ljava/util/List;
      official E Ldvs;E()Ljava/util/List;
    • getStatus

      public ChunkStatus getStatus()
      Specified by:
      getStatus in class Chunk
      Mappings:
      Namespace Name Mixin selector
      named getStatus Lnet/minecraft/world/chunk/Chunk;getStatus()Lnet/minecraft/world/chunk/ChunkStatus;
      intermediary method_12009 Lnet/minecraft/class_2791;method_12009()Lnet/minecraft/class_2806;
      official j Lduy;j()Ldvz;
    • setStatus

      public void setStatus(ChunkStatus status)
      Mappings:
      Namespace Name Mixin selector
      named setStatus Lnet/minecraft/world/chunk/ProtoChunk;setStatus(Lnet/minecraft/world/chunk/ChunkStatus;)V
      intermediary method_12308 Lnet/minecraft/class_2839;method_12308(Lnet/minecraft/class_2806;)V
      official a Ldvs;a(Ldvz;)V
    • getBiomeForNoiseGen

      public RegistryEntry<Biome> getBiomeForNoiseGen(int biomeX, int biomeY, int biomeZ)
      Specified by:
      getBiomeForNoiseGen in interface BiomeAccess.Storage
      Overrides:
      getBiomeForNoiseGen in class Chunk
      Mappings:
      Namespace Name Mixin selector
      named getBiomeForNoiseGen Lnet/minecraft/world/biome/source/BiomeAccess$Storage;getBiomeForNoiseGen(III)Lnet/minecraft/registry/entry/RegistryEntry;
      intermediary method_16359 Lnet/minecraft/class_4543$class_4544;method_16359(III)Lnet/minecraft/class_6880;
      official getNoiseBiome Lddy$a;getNoiseBiome(III)Ljm;
    • getPackedSectionRelative

      public static short getPackedSectionRelative(BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      named getPackedSectionRelative Lnet/minecraft/world/chunk/ProtoChunk;getPackedSectionRelative(Lnet/minecraft/util/math/BlockPos;)S
      intermediary method_12300 Lnet/minecraft/class_2839;method_12300(Lnet/minecraft/class_2338;)S
      official g Ldvs;g(Ljd;)S
    • joinBlockPos

      public static BlockPos joinBlockPos(short sectionRel, int sectionY, ChunkPos chunkPos)
      Mappings:
      Namespace Name Mixin selector
      named joinBlockPos Lnet/minecraft/world/chunk/ProtoChunk;joinBlockPos(SILnet/minecraft/util/math/ChunkPos;)Lnet/minecraft/util/math/BlockPos;
      intermediary method_12314 Lnet/minecraft/class_2839;method_12314(SILnet/minecraft/class_1923;)Lnet/minecraft/class_2338;
      official a Ldvs;a(SILdcd;)Ljd;
    • markBlockForPostProcessing

      public void markBlockForPostProcessing(BlockPos pos)
      Overrides:
      markBlockForPostProcessing in class Chunk
      Mappings:
      Namespace Name Mixin selector
      named markBlockForPostProcessing Lnet/minecraft/world/chunk/Chunk;markBlockForPostProcessing(Lnet/minecraft/util/math/BlockPos;)V
      intermediary method_12039 Lnet/minecraft/class_2791;method_12039(Lnet/minecraft/class_2338;)V
      official e Lduy;e(Ljd;)V
    • markBlockForPostProcessing

      public void markBlockForPostProcessing(short packedPos, int index)
      Overrides:
      markBlockForPostProcessing in class Chunk
      Mappings:
      Namespace Name Mixin selector
      named markBlockForPostProcessing Lnet/minecraft/world/chunk/Chunk;markBlockForPostProcessing(SI)V
      intermediary method_12029 Lnet/minecraft/class_2791;method_12029(SI)V
      official a Lduy;a(SI)V
    • getBlockEntityNbts

      public Map<BlockPos,NbtCompound> getBlockEntityNbts()
      Mappings:
      Namespace Name Mixin selector
      named getBlockEntityNbts Lnet/minecraft/world/chunk/ProtoChunk;getBlockEntityNbts()Ljava/util/Map;
      intermediary method_12316 Lnet/minecraft/class_2839;method_12316()Ljava/util/Map;
      official F Ldvs;F()Ljava/util/Map;
    • getPackedBlockEntityNbt

      @Nullable public @Nullable NbtCompound getPackedBlockEntityNbt(BlockPos pos, RegistryWrapper.WrapperLookup registryLookup)
      Specified by:
      getPackedBlockEntityNbt in class Chunk
      Mappings:
      Namespace Name Mixin selector
      named getPackedBlockEntityNbt Lnet/minecraft/world/chunk/Chunk;getPackedBlockEntityNbt(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)Lnet/minecraft/nbt/NbtCompound;
      intermediary method_20598 Lnet/minecraft/class_2791;method_20598(Lnet/minecraft/class_2338;Lnet/minecraft/class_7225$class_7874;)Lnet/minecraft/class_2487;
      official a Lduy;a(Ljd;Ljo$a;)Lub;
    • removeBlockEntity

      public void removeBlockEntity(BlockPos pos)
      Specified by:
      removeBlockEntity in class Chunk
      Mappings:
      Namespace Name Mixin selector
      named removeBlockEntity Lnet/minecraft/world/chunk/Chunk;removeBlockEntity(Lnet/minecraft/util/math/BlockPos;)V
      intermediary method_12041 Lnet/minecraft/class_2791;method_12041(Lnet/minecraft/class_2338;)V
      official d Lduy;d(Ljd;)V
    • getCarvingMask

      @Nullable public @Nullable CarvingMask getCarvingMask(GenerationStep.Carver step)
      Mappings:
      Namespace Name Mixin selector
      named getCarvingMask Lnet/minecraft/world/chunk/ProtoChunk;getCarvingMask(Lnet/minecraft/world/gen/GenerationStep$Carver;)Lnet/minecraft/world/gen/carver/CarvingMask;
      intermediary method_12025 Lnet/minecraft/class_2839;method_12025(Lnet/minecraft/class_2893$class_2894;)Lnet/minecraft/class_6643;
      official a Ldvs;a(Ldyu$a;)Ldux;
    • getOrCreateCarvingMask

      public CarvingMask getOrCreateCarvingMask(GenerationStep.Carver step)
      Mappings:
      Namespace Name Mixin selector
      named getOrCreateCarvingMask Lnet/minecraft/world/chunk/ProtoChunk;getOrCreateCarvingMask(Lnet/minecraft/world/gen/GenerationStep$Carver;)Lnet/minecraft/world/gen/carver/CarvingMask;
      intermediary method_28510 Lnet/minecraft/class_2839;method_28510(Lnet/minecraft/class_2893$class_2894;)Lnet/minecraft/class_6643;
      official b Ldvs;b(Ldyu$a;)Ldux;
    • setCarvingMask

      public void setCarvingMask(GenerationStep.Carver step, CarvingMask carvingMask)
      Mappings:
      Namespace Name Mixin selector
      named setCarvingMask Lnet/minecraft/world/chunk/ProtoChunk;setCarvingMask(Lnet/minecraft/world/gen/GenerationStep$Carver;Lnet/minecraft/world/gen/carver/CarvingMask;)V
      intermediary method_12307 Lnet/minecraft/class_2839;method_12307(Lnet/minecraft/class_2893$class_2894;Lnet/minecraft/class_6643;)V
      official a Ldvs;a(Ldyu$a;Ldux;)V
    • setLightingProvider

      public void setLightingProvider(LightingProvider lightingProvider)
      Mappings:
      Namespace Name Mixin selector
      named setLightingProvider Lnet/minecraft/world/chunk/ProtoChunk;setLightingProvider(Lnet/minecraft/world/chunk/light/LightingProvider;)V
      intermediary method_17032 Lnet/minecraft/class_2839;method_17032(Lnet/minecraft/class_3568;)V
      official a Ldvs;a(Leot;)V
    • setBelowZeroRetrogen

      public void setBelowZeroRetrogen(@Nullable @Nullable BelowZeroRetrogen belowZeroRetrogen)
      Mappings:
      Namespace Name Mixin selector
      named setBelowZeroRetrogen Lnet/minecraft/world/chunk/ProtoChunk;setBelowZeroRetrogen(Lnet/minecraft/world/chunk/BelowZeroRetrogen;)V
      intermediary method_39309 Lnet/minecraft/class_2839;method_39309(Lnet/minecraft/class_6746;)V
      official a Ldvs;a(Ldym;)V
    • getBelowZeroRetrogen

      @Nullable public @Nullable BelowZeroRetrogen getBelowZeroRetrogen()
      Overrides:
      getBelowZeroRetrogen in class Chunk
      Mappings:
      Namespace Name Mixin selector
      named getBelowZeroRetrogen Lnet/minecraft/world/chunk/Chunk;getBelowZeroRetrogen()Lnet/minecraft/world/chunk/BelowZeroRetrogen;
      intermediary method_39300 Lnet/minecraft/class_2791;method_39300()Lnet/minecraft/class_6746;
      official x Lduy;x()Ldym;
    • createProtoTickScheduler

      private static <T> ChunkTickScheduler<T> createProtoTickScheduler(SimpleTickScheduler<T> tickScheduler)
      Mappings:
      Namespace Name Mixin selector
      named createProtoTickScheduler Lnet/minecraft/world/chunk/ProtoChunk;createProtoTickScheduler(Lnet/minecraft/world/tick/SimpleTickScheduler;)Lnet/minecraft/world/tick/ChunkTickScheduler;
      intermediary method_39310 Lnet/minecraft/class_2839;method_39310(Lnet/minecraft/class_4296;)Lnet/minecraft/class_6755;
      official a Ldvs;a(Leyr;)Leyo;
    • getBlockProtoTickScheduler

      public ChunkTickScheduler<Block> getBlockProtoTickScheduler()
      Mappings:
      Namespace Name Mixin selector
      named getBlockProtoTickScheduler Lnet/minecraft/world/chunk/ProtoChunk;getBlockProtoTickScheduler()Lnet/minecraft/world/tick/ChunkTickScheduler;
      intermediary method_39307 Lnet/minecraft/class_2839;method_39307()Lnet/minecraft/class_6755;
      official G Ldvs;G()Leyo;
    • getFluidProtoTickScheduler

      public ChunkTickScheduler<Fluid> getFluidProtoTickScheduler()
      Mappings:
      Namespace Name Mixin selector
      named getFluidProtoTickScheduler Lnet/minecraft/world/chunk/ProtoChunk;getFluidProtoTickScheduler()Lnet/minecraft/world/tick/ChunkTickScheduler;
      intermediary method_39308 Lnet/minecraft/class_2839;method_39308()Lnet/minecraft/class_6755;
      official H Ldvs;H()Leyo;
    • getHeightLimitView

      public HeightLimitView getHeightLimitView()
      Overrides:
      getHeightLimitView in class Chunk
      Mappings:
      Namespace Name Mixin selector
      named getHeightLimitView Lnet/minecraft/world/chunk/Chunk;getHeightLimitView()Lnet/minecraft/world/HeightLimitView;
      intermediary method_39460 Lnet/minecraft/class_2791;method_39460()Lnet/minecraft/class_5539;
      official z Lduy;z()Ldcy;