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 dvb
  • 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 Ldvb;n:Leny;
    • 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 Ldvb;o:Ldvi;
    • 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 Ldvb;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 Ldvb;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 Ldvb;r:Ldxu;
    • 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 Ldvb;s:Lexw;
    • 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 Ldvb;t:Lexw;
  • 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> Ldvb;<init>(Ldbn;Ldve;Ldci;Ljw;Ldzj;)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> Ldvb;<init>(Ldbn;Ldve;[Ldus;Lexw;Lexw;Ldci;Ljw;Ldzj;)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 Lduh;o()Leyb;
    • 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 Lduh;p()Leyb;
    • 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 Lduh;q()Lduh$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_ Ldbm;a_(Lja;)Ldsl;
    • 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_ Ldbm;b_(Lja;)Leoj;
    • 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 Lduh;a(Lja;Ldsl;Z)Ldsl;
    • 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 Lduh;a(Ldpq;)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_ Ldbm;c_(Lja;)Ldpq;
    • 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 Ldvb;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 Ldvb;b(Ltx;)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 Lduh;a(Lbsh;)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 Ldvd;a(Leix;Lejf;)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 Ldvb;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 Lduh;j()Ldvi;
    • 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 Ldvb;a(Ldvi;)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 Lddi$a;getNoiseBiome(III)Ljj;
    • 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 Ldvb;g(Lja;)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 Ldvb;a(SILdbn;)Lja;
    • 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 Lduh;e(Lja;)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 Lduh;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 Ldvb;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 Lduh;a(Lja;Ljl$a;)Ltx;
    • 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 Lduh;d(Lja;)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 Ldvb;a(Ldyc$a;)Ldug;
    • 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 Ldvb;b(Ldyc$a;)Ldug;
    • 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 Ldvb;a(Ldyc$a;Ldug;)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 Ldvb;a(Leny;)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 Ldvb;a(Ldxu;)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 Lduh;x()Ldxu;
    • 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 Ldvb;a(Lexw;)Lext;
    • 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 Ldvb;G()Lext;
    • 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 Ldvb;H()Lext;
    • 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 Lduh;z()Ldci;