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
official des
intermediary net/minecraft/class_2839
named net/minecraft/world/chunk/ProtoChunk
  • Field Details

    • lightingProvider

      @Nullable private volatile @Nullable LightingProvider lightingProvider
      Mappings:
      Namespace Name Mixin selector
      official n Ldes;n:Ldwt;
      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 Ldes;o:Ldec;
      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 Ldes;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;
    • carvingMasks

      private final Map<GenerationStep.Carver,CarvingMask> carvingMasks
      Mappings:
      Namespace Name Mixin selector
      official q Ldes;q: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;
    • belowZeroRetrogen

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

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

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

    • ProtoChunk

      public ProtoChunk(ChunkPos pos, UpgradeData upgradeData, HeightLimitView world, Registry<Biome> biomeRegistry, @Nullable @Nullable BlendingData blendingData)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldes;<init>(Lclt;Ldev;Lcmo;Lhr;Ldin;)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
      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
    • 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
      official <init> Ldes;<init>(Lclt;Ldev;[Ldej;Lefr;Lefr;Lcmo;Lhr;Ldin;)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
      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
  • Method Details

    • getBlockTickScheduler

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

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

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

      public BlockState getBlockState(BlockPos pos)
      Returns the block state at pos.
      Returns:
      the block state at pos
      Mappings:
      Namespace Name Mixin selector
      official a_ Lcls;a_(Lgu;)Ldcb;
      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)
      Returns the fluid state at pos.
      Returns:
      the fluid state at pos
      Mappings:
      Namespace Name Mixin selector
      official b_ Lcls;b_(Lgu;)Ldxe;
      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;
    • 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 Lddx;a(Lgu;Ldcb;Z)Ldcb;
      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 Lddx;a(Lczn;)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)
      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
      official c_ Lcls;c_(Lgu;)Lczn;
      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 D Ldes;D()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 entityNbt)
      Mappings:
      Namespace Name Mixin selector
      official b Ldes;b(Lqr;)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 Lddx;a(Lbfj;)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
    • setStructureStart

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

      public List<NbtCompound> getEntities()
      Mappings:
      Namespace Name Mixin selector
      official E Ldes;E()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 Lddx;j()Ldec;
      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 Ldes;a(Ldec;)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 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
      official getNoiseBiome Lcnm$a;getNoiseBiome(III)Lhe;
      intermediary method_16359 Lnet/minecraft/class_4543$class_4544;method_16359(III)Lnet/minecraft/class_6880;
      named getBiomeForNoiseGen Lnet/minecraft/world/biome/source/BiomeAccess$Storage;getBiomeForNoiseGen(III)Lnet/minecraft/registry/entry/RegistryEntry;
    • getPackedSectionRelative

      public static short getPackedSectionRelative(BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official j Ldes;j(Lgu;)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 Ldes;a(SILclt;)Lgu;
      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 Lddx;e(Lgu;)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 Lddx;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 F Ldes;F()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 Lddx;g(Lgu;)Lqr;
      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 Lddx;d(Lgu;)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 CarvingMask getCarvingMask(GenerationStep.Carver step)
      Mappings:
      Namespace Name Mixin selector
      official a Ldes;a(Ldhg$a;)Lddw;
      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/world/gen/carver/CarvingMask;
    • getOrCreateCarvingMask

      public CarvingMask getOrCreateCarvingMask(GenerationStep.Carver step)
      Mappings:
      Namespace Name Mixin selector
      official b Ldes;b(Ldhg$a;)Lddw;
      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/world/gen/carver/CarvingMask;
    • setCarvingMask

      public void setCarvingMask(GenerationStep.Carver step, CarvingMask carvingMask)
      Mappings:
      Namespace Name Mixin selector
      official a Ldes;a(Ldhg$a;Lddw;)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/world/gen/carver/CarvingMask;)V
    • setLightingProvider

      public void setLightingProvider(LightingProvider lightingProvider)
      Mappings:
      Namespace Name Mixin selector
      official a Ldes;a(Ldwt;)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
    • setBelowZeroRetrogen

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

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

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

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

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

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