Package net.minecraft.world
Class ChunkSectionCache
java.lang.Object
net.minecraft.world.ChunkSectionCache
- All Implemented Interfaces:
AutoCloseable
public class ChunkSectionCache extends Object implements AutoCloseable
- Mappings:
Namespace Name official ckgintermediary net/minecraft/class_5867named net/minecraft/world/ChunkSectionCache
-
Field Summary
Fields Modifier and Type Field Description private Long2ObjectMap<ChunkSection>cacheprivate @Nullable ChunkSectioncachedSectionprivate longsectionPosprivate WorldAccessworld -
Constructor Summary
Constructors Constructor Description ChunkSectionCache(WorldAccess world) -
Method Summary
Modifier and Type Method Description voidclose()BlockStategetBlockState(BlockPos pos)ChunkSectiongetSection(BlockPos pos)
-
Field Details
-
world
- Mappings:
Namespace Name Mixin selector official aLckg;a:Lbur;intermediary field_29037Lnet/minecraft/class_5867;field_29037:Lnet/minecraft/class_1936;named worldLnet/minecraft/world/ChunkSectionCache;world:Lnet/minecraft/world/WorldAccess;
-
cache
- Mappings:
Namespace Name Mixin selector official bLckg;b:Lit/unimi/dsi/fastutil/longs/Long2ObjectMap;intermediary field_29038Lnet/minecraft/class_5867;field_29038:Lit/unimi/dsi/fastutil/longs/Long2ObjectMap;named cacheLnet/minecraft/world/ChunkSectionCache;cache:Lit/unimi/dsi/fastutil/longs/Long2ObjectMap;
-
cachedSection
- Mappings:
Namespace Name Mixin selector official cLckg;c:Lckt;intermediary field_29039Lnet/minecraft/class_5867;field_29039:Lnet/minecraft/class_2826;named cachedSectionLnet/minecraft/world/ChunkSectionCache;cachedSection:Lnet/minecraft/world/chunk/ChunkSection;
-
sectionPos
private long sectionPos- Mappings:
Namespace Name Mixin selector official dLckg;d:Jintermediary field_29040Lnet/minecraft/class_5867;field_29040:Jnamed sectionPosLnet/minecraft/world/ChunkSectionCache;sectionPos:J
-
-
Constructor Details
-
ChunkSectionCache
- Mappings:
Namespace Name Mixin selector official <init>Lckg;<init>(Lbur;)Vintermediary <init>Lnet/minecraft/class_5867;<init>(Lnet/minecraft/class_1936;)Vnamed <init>Lnet/minecraft/world/ChunkSectionCache;<init>(Lnet/minecraft/world/WorldAccess;)V
-
-
Method Details
-
getSection
- Mappings:
Namespace Name Mixin selector official aLckg;a(Lfx;)Lckt;intermediary method_33944Lnet/minecraft/class_5867;method_33944(Lnet/minecraft/class_2338;)Lnet/minecraft/class_2826;named getSectionLnet/minecraft/world/ChunkSectionCache;getSection(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/world/chunk/ChunkSection;
-
getBlockState
- Mappings:
Namespace Name Mixin selector official bLckg;b(Lfx;)Lcio;intermediary method_33946Lnet/minecraft/class_5867;method_33946(Lnet/minecraft/class_2338;)Lnet/minecraft/class_2680;named getBlockStateLnet/minecraft/world/ChunkSectionCache;getBlockState(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/BlockState;
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Mappings:
Namespace Name Mixin selector official closeLckg;close()Vintermediary closeLnet/minecraft/class_5867;close()Vnamed closeLnet/minecraft/world/ChunkSectionCache;close()V
-