Class ProtoChunk

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

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

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official m Lcpr;m:Lorg/apache/logging/log4j/Logger;
      intermediary field_12920 Lnet/minecraft/class_2839;field_12920:Lorg/apache/logging/log4j/Logger;
      named LOGGER Lnet/minecraft/world/chunk/ProtoChunk;LOGGER:Lorg/apache/logging/log4j/Logger;
    • lightingProvider

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

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

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

      private final List<BlockPos> lightSources
      Mappings:
      Namespace Name Mixin selector
      official q Lcpr;q:Ljava/util/List;
      intermediary field_12919 Lnet/minecraft/class_2839;field_12919:Ljava/util/List;
      named lightSources Lnet/minecraft/world/chunk/ProtoChunk;lightSources:Ljava/util/List;
    • carvingMasks

      private final Map<GenerationStep.Carver,class_6643> carvingMasks
      Mappings:
      Namespace Name Mixin selector
      official r Lcpr;r:Ljava/util/Map;
      intermediary field_12926 Lnet/minecraft/class_2839;field_12926:Ljava/util/Map;
      named carvingMasks Lnet/minecraft/world/chunk/ProtoChunk;carvingMasks:Ljava/util/Map;
  • Constructor Details

    • ProtoChunk

      public ProtoChunk(ChunkPos pos, UpgradeData upgradeData, HeightLimitView world, Registry<Biome> registry)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcpr;<init>(Lbyf;Lcpu;Lbzd;Lgx;)V
      intermediary <init> Lnet/minecraft/class_2839;<init>(Lnet/minecraft/class_1923;Lnet/minecraft/class_2843;Lnet/minecraft/class_5539;Lnet/minecraft/class_2378;)V
      named <init> Lnet/minecraft/world/chunk/ProtoChunk;<init>(Lnet/minecraft/util/math/ChunkPos;Lnet/minecraft/world/chunk/UpgradeData;Lnet/minecraft/world/HeightLimitView;Lnet/minecraft/util/registry/Registry;)V
    • ProtoChunk

      public ProtoChunk(ChunkPos pos, UpgradeData upgradeData, @Nullable @Nullable ChunkSection[] chunkSection, ChunkTickScheduler<Block> blockTickScheduler, ChunkTickScheduler<Fluid> fluidTickScheduler, HeightLimitView world, Registry<Biome> registry)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcpr;<init>(Lbyf;Lcpu;[Lcpk;Lcps;Lcps;Lbzd;Lgx;)V
      intermediary <init> Lnet/minecraft/class_2839;<init>(Lnet/minecraft/class_1923;Lnet/minecraft/class_2843;[Lnet/minecraft/class_2826;Lnet/minecraft/class_2850;Lnet/minecraft/class_2850;Lnet/minecraft/class_5539;Lnet/minecraft/class_2378;)V
      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/ChunkTickScheduler;Lnet/minecraft/world/ChunkTickScheduler;Lnet/minecraft/world/HeightLimitView;Lnet/minecraft/util/registry/Registry;)V
  • Method Details

    • getBlockState

      public BlockState getBlockState(BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official a_ Lbye;a_(Lgh;)Lcnd;
      intermediary method_8320 Lnet/minecraft/class_1922;method_8320(Lnet/minecraft/class_2338;)Lnet/minecraft/class_2680;
      named getBlockState Lnet/minecraft/world/BlockView;getBlockState(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/BlockState;
    • getFluidState

      public FluidState getFluidState(BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official b_ Lbye;b_(Lgh;)Ldhg;
      intermediary method_8316 Lnet/minecraft/class_1922;method_8316(Lnet/minecraft/class_2338;)Lnet/minecraft/class_3610;
      named getFluidState Lnet/minecraft/world/BlockView;getFluidState(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/fluid/FluidState;
    • getLightSourcesStream

      public Stream<BlockPos> getLightSourcesStream()
      Specified by:
      getLightSourcesStream in class Chunk
      Mappings:
      Namespace Name Mixin selector
      official n Lcoz;n()Ljava/util/stream/Stream;
      intermediary method_12018 Lnet/minecraft/class_2791;method_12018()Ljava/util/stream/Stream;
      named getLightSourcesStream Lnet/minecraft/world/chunk/Chunk;getLightSourcesStream()Ljava/util/stream/Stream;
    • getLightSourcesBySection

      public ShortList[] getLightSourcesBySection()
      Mappings:
      Namespace Name Mixin selector
      official v Lcpr;v()[Lit/unimi/dsi/fastutil/shorts/ShortList;
      intermediary method_12296 Lnet/minecraft/class_2839;method_12296()[Lit/unimi/dsi/fastutil/shorts/ShortList;
      named getLightSourcesBySection Lnet/minecraft/world/chunk/ProtoChunk;getLightSourcesBySection()[Lit/unimi/dsi/fastutil/shorts/ShortList;
    • addLightSource

      public void addLightSource(short chunkSliceRel, int sectionY)
      Mappings:
      Namespace Name Mixin selector
      official b Lcpr;b(SI)V
      intermediary method_12304 Lnet/minecraft/class_2839;method_12304(SI)V
      named addLightSource Lnet/minecraft/world/chunk/ProtoChunk;addLightSource(SI)V
    • addLightSource

      public void addLightSource(BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official j Lcpr;j(Lgh;)V
      intermediary method_12315 Lnet/minecraft/class_2839;method_12315(Lnet/minecraft/class_2338;)V
      named addLightSource Lnet/minecraft/world/chunk/ProtoChunk;addLightSource(Lnet/minecraft/util/math/BlockPos;)V
    • setBlockState

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

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

      @Nullable public @Nullable BlockEntity getBlockEntity(BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official c_ Lbye;c_(Lgh;)Lcla;
      intermediary method_8321 Lnet/minecraft/class_1922;method_8321(Lnet/minecraft/class_2338;)Lnet/minecraft/class_2586;
      named getBlockEntity Lnet/minecraft/world/BlockView;getBlockEntity(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/entity/BlockEntity;
    • getBlockEntities

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

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

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

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

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

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

      public 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
      official getNoiseBiome Lcad$a;getNoiseBiome(III)Lcab;
      intermediary method_16359 Lnet/minecraft/class_4543$class_4544;method_16359(III)Lnet/minecraft/class_1959;
      named getBiomeForNoiseGen Lnet/minecraft/world/biome/source/BiomeAccess$Storage;getBiomeForNoiseGen(III)Lnet/minecraft/world/biome/Biome;
    • getPackedSectionRelative

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

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

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

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

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

      @Nullable public @Nullable NbtCompound getPackedBlockEntityNbt(BlockPos pos)
      Specified by:
      getPackedBlockEntityNbt in class Chunk
      Mappings:
      Namespace Name Mixin selector
      official g Lcoz;g(Lgh;)Lnf;
      intermediary method_20598 Lnet/minecraft/class_2791;method_20598(Lnet/minecraft/class_2338;)Lnet/minecraft/class_2487;
      named getPackedBlockEntityNbt Lnet/minecraft/world/chunk/Chunk;getPackedBlockEntityNbt(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/nbt/NbtCompound;
    • removeBlockEntity

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

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

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

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

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