Package net.minecraft.world.chunk
Class ChunkToNibbleArrayMap<M extends ChunkToNibbleArrayMap<M>>
java.lang.Object
net.minecraft.world.chunk.ChunkToNibbleArrayMap<M>
- Direct Known Subclasses:
BlockLightStorage.Data
,SkyLightStorage.Data
public abstract class ChunkToNibbleArrayMap<M extends ChunkToNibbleArrayMap<M>> extends Object
- Mappings:
Namespace Name official czw
intermediary net/minecraft/class_3556
named net/minecraft/world/chunk/ChunkToNibbleArrayMap
-
Field Summary
Fields Modifier and Type Field Description protected Long2ObjectOpenHashMap<ChunkNibbleArray>
arrays
private ChunkNibbleArray[]
cacheArrays
private boolean
cacheEnabled
private long[]
cachePositions
-
Constructor Summary
Constructors Modifier Constructor Description protected
ChunkToNibbleArrayMap(Long2ObjectOpenHashMap<ChunkNibbleArray> arrays)
-
Method Summary
Modifier and Type Method Description void
clearCache()
boolean
containsKey(long chunkPos)
abstract M
copy()
void
disableCache()
ChunkNibbleArray
get(long chunkPos)
void
put(long pos, ChunkNibbleArray data)
ChunkNibbleArray
removeChunk(long chunkPos)
void
replaceWithCopy(long pos)
-
Field Details
-
cachePositions
private final long[] cachePositions- Mappings:
Namespace Name Mixin selector official b
Lczw;b:[J
intermediary field_15789
Lnet/minecraft/class_3556;field_15789:[J
named cachePositions
Lnet/minecraft/world/chunk/ChunkToNibbleArrayMap;cachePositions:[J
-
cacheArrays
- Mappings:
Namespace Name Mixin selector official c
Lczw;c:[Lcjq;
intermediary field_15790
Lnet/minecraft/class_3556;field_15790:[Lnet/minecraft/class_2804;
named cacheArrays
Lnet/minecraft/world/chunk/ChunkToNibbleArrayMap;cacheArrays:[Lnet/minecraft/world/chunk/ChunkNibbleArray;
-
cacheEnabled
private boolean cacheEnabled- Mappings:
Namespace Name Mixin selector official d
Lczw;d:Z
intermediary field_16447
Lnet/minecraft/class_3556;field_16447:Z
named cacheEnabled
Lnet/minecraft/world/chunk/ChunkToNibbleArrayMap;cacheEnabled:Z
-
arrays
- Mappings:
Namespace Name Mixin selector official a
Lczw;a:Lit/unimi/dsi/fastutil/longs/Long2ObjectOpenHashMap;
intermediary field_15791
Lnet/minecraft/class_3556;field_15791:Lit/unimi/dsi/fastutil/longs/Long2ObjectOpenHashMap;
named arrays
Lnet/minecraft/world/chunk/ChunkToNibbleArrayMap;arrays:Lit/unimi/dsi/fastutil/longs/Long2ObjectOpenHashMap;
-
-
Constructor Details
-
ChunkToNibbleArrayMap
- Mappings:
Namespace Name Mixin selector official <init>
Lczw;<init>(Lit/unimi/dsi/fastutil/longs/Long2ObjectOpenHashMap;)V
intermediary <init>
Lnet/minecraft/class_3556;<init>(Lit/unimi/dsi/fastutil/longs/Long2ObjectOpenHashMap;)V
named <init>
Lnet/minecraft/world/chunk/ChunkToNibbleArrayMap;<init>(Lit/unimi/dsi/fastutil/longs/Long2ObjectOpenHashMap;)V
-
-
Method Details
-
copy
- Mappings:
Namespace Name Mixin selector official b
Lczw;b()Lczw;
intermediary method_15504
Lnet/minecraft/class_3556;method_15504()Lnet/minecraft/class_3556;
named copy
Lnet/minecraft/world/chunk/ChunkToNibbleArrayMap;copy()Lnet/minecraft/world/chunk/ChunkToNibbleArrayMap;
-
replaceWithCopy
public void replaceWithCopy(long pos)- Mappings:
Namespace Name Mixin selector official a
Lczw;a(J)V
intermediary method_15502
Lnet/minecraft/class_3556;method_15502(J)V
named replaceWithCopy
Lnet/minecraft/world/chunk/ChunkToNibbleArrayMap;replaceWithCopy(J)V
-
containsKey
public boolean containsKey(long chunkPos)- Mappings:
Namespace Name Mixin selector official b
Lczw;b(J)Z
intermediary method_15503
Lnet/minecraft/class_3556;method_15503(J)Z
named containsKey
Lnet/minecraft/world/chunk/ChunkToNibbleArrayMap;containsKey(J)Z
-
get
- Mappings:
Namespace Name Mixin selector official c
Lczw;c(J)Lcjq;
intermediary method_15501
Lnet/minecraft/class_3556;method_15501(J)Lnet/minecraft/class_2804;
named get
Lnet/minecraft/world/chunk/ChunkToNibbleArrayMap;get(J)Lnet/minecraft/world/chunk/ChunkNibbleArray;
-
removeChunk
- Mappings:
Namespace Name Mixin selector official d
Lczw;d(J)Lcjq;
intermediary method_15500
Lnet/minecraft/class_3556;method_15500(J)Lnet/minecraft/class_2804;
named removeChunk
Lnet/minecraft/world/chunk/ChunkToNibbleArrayMap;removeChunk(J)Lnet/minecraft/world/chunk/ChunkNibbleArray;
-
put
- Mappings:
Namespace Name Mixin selector official a
Lczw;a(JLcjq;)V
intermediary method_15499
Lnet/minecraft/class_3556;method_15499(JLnet/minecraft/class_2804;)V
named put
Lnet/minecraft/world/chunk/ChunkToNibbleArrayMap;put(JLnet/minecraft/world/chunk/ChunkNibbleArray;)V
-
clearCache
public void clearCache()- Mappings:
Namespace Name Mixin selector official c
Lczw;c()V
intermediary method_15505
Lnet/minecraft/class_3556;method_15505()V
named clearCache
Lnet/minecraft/world/chunk/ChunkToNibbleArrayMap;clearCache()V
-
disableCache
public void disableCache()- Mappings:
Namespace Name Mixin selector official d
Lczw;d()V
intermediary method_16188
Lnet/minecraft/class_3556;method_16188()V
named disableCache
Lnet/minecraft/world/chunk/ChunkToNibbleArrayMap;disableCache()V
-