Class ChunkSectionCache

java.lang.Object
net.minecraft.world.ChunkSectionCache
All Implemented Interfaces:
AutoCloseable

public class ChunkSectionCache extends Object implements AutoCloseable
Mappings:
Namespace Name
named net/minecraft/world/ChunkSectionCache
intermediary net/minecraft/class_5867
official dzn
  • Field Details

    • world

      private final WorldAccess world
      Mappings:
      Namespace Name Mixin selector
      named world Lnet/minecraft/world/ChunkSectionCache;world:Lnet/minecraft/world/WorldAccess;
      intermediary field_29037 Lnet/minecraft/class_5867;field_29037:Lnet/minecraft/class_1936;
      official a Ldzn;a:Ldhi;
    • cache

      private final Long2ObjectMap<ChunkSection> cache
      Mappings:
      Namespace Name Mixin selector
      named cache Lnet/minecraft/world/ChunkSectionCache;cache:Lit/unimi/dsi/fastutil/longs/Long2ObjectMap;
      intermediary field_29038 Lnet/minecraft/class_5867;field_29038:Lit/unimi/dsi/fastutil/longs/Long2ObjectMap;
      official b Ldzn;b:Lit/unimi/dsi/fastutil/longs/Long2ObjectMap;
    • cachedSection

      @Nullable private @Nullable ChunkSection cachedSection
      Mappings:
      Namespace Name Mixin selector
      named cachedSection Lnet/minecraft/world/ChunkSectionCache;cachedSection:Lnet/minecraft/world/chunk/ChunkSection;
      intermediary field_29039 Lnet/minecraft/class_5867;field_29039:Lnet/minecraft/class_2826;
      official c Ldzn;c:Leaa;
    • sectionPos

      private long sectionPos
      Mappings:
      Namespace Name Mixin selector
      named sectionPos Lnet/minecraft/world/ChunkSectionCache;sectionPos:J
      intermediary field_29040 Lnet/minecraft/class_5867;field_29040:J
      official d Ldzn;d:J
  • Constructor Details

    • ChunkSectionCache

      public ChunkSectionCache(WorldAccess world)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/world/ChunkSectionCache;<init>(Lnet/minecraft/world/WorldAccess;)V
      intermediary <init> Lnet/minecraft/class_5867;<init>(Lnet/minecraft/class_1936;)V
      official <init> Ldzn;<init>(Ldhi;)V
  • Method Details

    • getSection

      @Nullable public @Nullable ChunkSection getSection(BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      named getSection Lnet/minecraft/world/ChunkSectionCache;getSection(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/world/chunk/ChunkSection;
      intermediary method_33944 Lnet/minecraft/class_5867;method_33944(Lnet/minecraft/class_2338;)Lnet/minecraft/class_2826;
      official a Ldzn;a(Ljh;)Leaa;
    • getBlockState

      public BlockState getBlockState(BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      named getBlockState Lnet/minecraft/world/ChunkSectionCache;getBlockState(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/BlockState;
      intermediary method_33946 Lnet/minecraft/class_5867;method_33946(Lnet/minecraft/class_2338;)Lnet/minecraft/class_2680;
      official b Ldzn;b(Ljh;)Ldxu;
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable