类 SerializingRegionBasedStorage<R>
- java.lang.Object
-
- net.minecraft.world.storage.SerializingRegionBasedStorage<R>
-
- 所有已实现的接口:
AutoCloseable
- 直接已知子类:
PointOfInterestStorage
public class SerializingRegionBasedStorage<R> extends Object implements AutoCloseable
- Mappings:
Namespace Name official cmqintermediary net/minecraft/class_4180named net/minecraft/world/storage/SerializingRegionBasedStorage
-
-
字段概要
字段 修饰符和类型 字段 说明 private Function<Runnable,com.mojang.serialization.Codec<R>>codecFactoryprivate com.mojang.datafixers.DataFixerdataFixerprivate DataFixTypesdataFixTypesprivate Function<Runnable,R>factoryprivate static Stringfield_31427private Long2ObjectMap<Optional<R>>loadedElementsprivate static LoggerLOGGERprivate LongLinkedOpenHashSetunsavedElementsprivate StorageIoWorkerworkerprotected HeightLimitViewworld
-
构造器概要
构造器 构造器 说明 SerializingRegionBasedStorage(File directory, Function<Runnable,com.mojang.serialization.Codec<R>> codecFactory, Function<Runnable,R> factory, com.mojang.datafixers.DataFixer dataFixer, DataFixTypes dataFixTypes, boolean dsync, HeightLimitView world)
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 voidclose()protected Optional<R>get(long pos)private static intgetDataVersion(com.mojang.serialization.Dynamic<?> dynamic)protected @Nullable Optional<R>getIfLoaded(long pos)protected RgetOrCreate(long pos)protected booleanisPosInvalid(long long2)private voidloadDataAt(ChunkPos chunkPos)private @Nullable CompoundTagloadNbt(ChunkPos pos)private <T> com.mojang.serialization.Dynamic<T>method_20367(ChunkPos chunkPos, com.mojang.serialization.DynamicOps<T> dynamicOps)private static longmethod_33637(ChunkPos chunkPos, int int2)protected voidonLoad(long pos)protected voidonUpdate(long pos)private voidsave(ChunkPos chunkPos)voidsaveChunk(ChunkPos pos)protected voidtick(BooleanSupplier shouldKeepTicking)private <T> voidupdate(ChunkPos pos, com.mojang.serialization.DynamicOps<T> dynamicOps, T data)
-
-
-
字段详细资料
-
LOGGER
private static final Logger LOGGER
- Mappings:
Namespace Name Mixin selector official aLcmq;a:Lorg/apache/logging/log4j/Logger;intermediary field_18691Lnet/minecraft/class_4180;field_18691:Lorg/apache/logging/log4j/Logger;named LOGGERLnet/minecraft/world/storage/SerializingRegionBasedStorage;LOGGER:Lorg/apache/logging/log4j/Logger;
-
field_31427
private static final String field_31427
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official bLcmq;b:Ljava/lang/String;intermediary field_31427Lnet/minecraft/class_4180;field_31427:Ljava/lang/String;named field_31427Lnet/minecraft/world/storage/SerializingRegionBasedStorage;field_31427:Ljava/lang/String;
-
worker
private final StorageIoWorker worker
- Mappings:
Namespace Name Mixin selector official dLcmq;d:Lcmk;intermediary field_21505Lnet/minecraft/class_4180;field_21505:Lnet/minecraft/class_4698;named workerLnet/minecraft/world/storage/SerializingRegionBasedStorage;worker:Lnet/minecraft/world/storage/StorageIoWorker;
-
loadedElements
private final Long2ObjectMap<Optional<R>> loadedElements
- Mappings:
Namespace Name Mixin selector official eLcmq;e:Lit/unimi/dsi/fastutil/longs/Long2ObjectMap;intermediary field_18692Lnet/minecraft/class_4180;field_18692:Lit/unimi/dsi/fastutil/longs/Long2ObjectMap;named loadedElementsLnet/minecraft/world/storage/SerializingRegionBasedStorage;loadedElements:Lit/unimi/dsi/fastutil/longs/Long2ObjectMap;
-
unsavedElements
private final LongLinkedOpenHashSet unsavedElements
- Mappings:
Namespace Name Mixin selector official fLcmq;f:Lit/unimi/dsi/fastutil/longs/LongLinkedOpenHashSet;intermediary field_18693Lnet/minecraft/class_4180;field_18693:Lit/unimi/dsi/fastutil/longs/LongLinkedOpenHashSet;named unsavedElementsLnet/minecraft/world/storage/SerializingRegionBasedStorage;unsavedElements:Lit/unimi/dsi/fastutil/longs/LongLinkedOpenHashSet;
-
codecFactory
private final Function<Runnable,com.mojang.serialization.Codec<R>> codecFactory
- Mappings:
Namespace Name Mixin selector official gLcmq;g:Ljava/util/function/Function;intermediary field_24750Lnet/minecraft/class_4180;field_24750:Ljava/util/function/Function;named codecFactoryLnet/minecraft/world/storage/SerializingRegionBasedStorage;codecFactory:Ljava/util/function/Function;
-
factory
private final Function<Runnable,R> factory
- Mappings:
Namespace Name Mixin selector official hLcmq;h:Ljava/util/function/Function;intermediary field_18695Lnet/minecraft/class_4180;field_18695:Ljava/util/function/Function;named factoryLnet/minecraft/world/storage/SerializingRegionBasedStorage;factory:Ljava/util/function/Function;
-
dataFixer
private final com.mojang.datafixers.DataFixer dataFixer
- Mappings:
Namespace Name Mixin selector official iLcmq;i:Lcom/mojang/datafixers/DataFixer;intermediary field_19228Lnet/minecraft/class_4180;field_19228:Lcom/mojang/datafixers/DataFixer;named dataFixerLnet/minecraft/world/storage/SerializingRegionBasedStorage;dataFixer:Lcom/mojang/datafixers/DataFixer;
-
dataFixTypes
private final DataFixTypes dataFixTypes
- Mappings:
Namespace Name Mixin selector official jLcmq;j:Lahh;intermediary field_19229Lnet/minecraft/class_4180;field_19229:Lnet/minecraft/class_4284;named dataFixTypesLnet/minecraft/world/storage/SerializingRegionBasedStorage;dataFixTypes:Lnet/minecraft/datafixer/DataFixTypes;
-
world
protected final HeightLimitView world
- Mappings:
Namespace Name Mixin selector official cLcmq;c:Lbvt;intermediary field_27240Lnet/minecraft/class_4180;field_27240:Lnet/minecraft/class_5539;named worldLnet/minecraft/world/storage/SerializingRegionBasedStorage;world:Lnet/minecraft/world/HeightLimitView;
-
-
构造器详细资料
-
SerializingRegionBasedStorage
public SerializingRegionBasedStorage(File directory, Function<Runnable,com.mojang.serialization.Codec<R>> codecFactory, Function<Runnable,R> factory, com.mojang.datafixers.DataFixer dataFixer, DataFixTypes dataFixTypes, boolean dsync, HeightLimitView world)
- Mappings:
Namespace Name Mixin selector official <init>Lcmq;<init>(Ljava/io/File;Ljava/util/function/Function;Ljava/util/function/Function;Lcom/mojang/datafixers/DataFixer;Lahh;ZLbvt;)Vintermediary <init>Lnet/minecraft/class_4180;<init>(Ljava/io/File;Ljava/util/function/Function;Ljava/util/function/Function;Lcom/mojang/datafixers/DataFixer;Lnet/minecraft/class_4284;ZLnet/minecraft/class_5539;)Vnamed <init>Lnet/minecraft/world/storage/SerializingRegionBasedStorage;<init>(Ljava/io/File;Ljava/util/function/Function;Ljava/util/function/Function;Lcom/mojang/datafixers/DataFixer;Lnet/minecraft/datafixer/DataFixTypes;ZLnet/minecraft/world/HeightLimitView;)V
-
-
方法详细资料
-
tick
protected void tick(BooleanSupplier shouldKeepTicking)
- Mappings:
Namespace Name Mixin selector official aLcmq;a(Ljava/util/function/BooleanSupplier;)Vintermediary method_19290Lnet/minecraft/class_4180;method_19290(Ljava/util/function/BooleanSupplier;)Vnamed tickLnet/minecraft/world/storage/SerializingRegionBasedStorage;tick(Ljava/util/function/BooleanSupplier;)V
-
getIfLoaded
@Nullable protected @Nullable Optional<R> getIfLoaded(long pos)
- Mappings:
Namespace Name Mixin selector official cLcmq;c(J)Ljava/util/Optional;intermediary method_19293Lnet/minecraft/class_4180;method_19293(J)Ljava/util/Optional;named getIfLoadedLnet/minecraft/world/storage/SerializingRegionBasedStorage;getIfLoaded(J)Ljava/util/Optional;
-
get
protected Optional<R> get(long pos)
- Mappings:
Namespace Name Mixin selector official dLcmq;d(J)Ljava/util/Optional;intermediary method_19294Lnet/minecraft/class_4180;method_19294(J)Ljava/util/Optional;named getLnet/minecraft/world/storage/SerializingRegionBasedStorage;get(J)Ljava/util/Optional;
-
isPosInvalid
protected boolean isPosInvalid(long long2)
- Mappings:
Namespace Name Mixin selector official eLcmq;e(J)Zintermediary method_19292Lnet/minecraft/class_4180;method_19292(J)Znamed isPosInvalidLnet/minecraft/world/storage/SerializingRegionBasedStorage;isPosInvalid(J)Z
-
getOrCreate
protected R getOrCreate(long pos)
- Mappings:
Namespace Name Mixin selector official fLcmq;f(J)Ljava/lang/Object;intermediary method_19295Lnet/minecraft/class_4180;method_19295(J)Ljava/lang/Object;named getOrCreateLnet/minecraft/world/storage/SerializingRegionBasedStorage;getOrCreate(J)Ljava/lang/Object;
-
loadDataAt
private void loadDataAt(ChunkPos chunkPos)
- Mappings:
Namespace Name Mixin selector official bLcmq;b(Lbuw;)Vintermediary method_19289Lnet/minecraft/class_4180;method_19289(Lnet/minecraft/class_1923;)Vnamed loadDataAtLnet/minecraft/world/storage/SerializingRegionBasedStorage;loadDataAt(Lnet/minecraft/util/math/ChunkPos;)V
-
loadNbt
@Nullable private @Nullable CompoundTag loadNbt(ChunkPos pos)
- Mappings:
Namespace Name Mixin selector official cLcmq;c(Lbuw;)Lmv;intermediary method_20621Lnet/minecraft/class_4180;method_20621(Lnet/minecraft/class_1923;)Lnet/minecraft/class_2487;named loadNbtLnet/minecraft/world/storage/SerializingRegionBasedStorage;loadNbt(Lnet/minecraft/util/math/ChunkPos;)Lnet/minecraft/nbt/CompoundTag;
-
update
private <T> void update(ChunkPos pos, com.mojang.serialization.DynamicOps<T> dynamicOps, @Nullable T data)
- Mappings:
Namespace Name Mixin selector official aLcmq;a(Lbuw;Lcom/mojang/serialization/DynamicOps;Ljava/lang/Object;)Vintermediary method_20368Lnet/minecraft/class_4180;method_20368(Lnet/minecraft/class_1923;Lcom/mojang/serialization/DynamicOps;Ljava/lang/Object;)Vnamed updateLnet/minecraft/world/storage/SerializingRegionBasedStorage;update(Lnet/minecraft/util/math/ChunkPos;Lcom/mojang/serialization/DynamicOps;Ljava/lang/Object;)V
-
save
private void save(ChunkPos chunkPos)
- Mappings:
Namespace Name Mixin selector official dLcmq;d(Lbuw;)Vintermediary method_20370Lnet/minecraft/class_4180;method_20370(Lnet/minecraft/class_1923;)Vnamed saveLnet/minecraft/world/storage/SerializingRegionBasedStorage;save(Lnet/minecraft/util/math/ChunkPos;)V
-
method_20367
private <T> com.mojang.serialization.Dynamic<T> method_20367(ChunkPos chunkPos, com.mojang.serialization.DynamicOps<T> dynamicOps)
- Mappings:
Namespace Name Mixin selector official aLcmq;a(Lbuw;Lcom/mojang/serialization/DynamicOps;)Lcom/mojang/serialization/Dynamic;intermediary method_20367Lnet/minecraft/class_4180;method_20367(Lnet/minecraft/class_1923;Lcom/mojang/serialization/DynamicOps;)Lcom/mojang/serialization/Dynamic;named method_20367Lnet/minecraft/world/storage/SerializingRegionBasedStorage;method_20367(Lnet/minecraft/util/math/ChunkPos;Lcom/mojang/serialization/DynamicOps;)Lcom/mojang/serialization/Dynamic;
-
method_33637
private static long method_33637(ChunkPos chunkPos, int int2)
- Mappings:
Namespace Name Mixin selector official aLcmq;a(Lbuw;I)Jintermediary method_33637Lnet/minecraft/class_4180;method_33637(Lnet/minecraft/class_1923;I)Jnamed method_33637Lnet/minecraft/world/storage/SerializingRegionBasedStorage;method_33637(Lnet/minecraft/util/math/ChunkPos;I)J
-
onLoad
protected void onLoad(long pos)
- Mappings:
Namespace Name Mixin selector official bLcmq;b(J)Vintermediary method_19291Lnet/minecraft/class_4180;method_19291(J)Vnamed onLoadLnet/minecraft/world/storage/SerializingRegionBasedStorage;onLoad(J)V
-
onUpdate
protected void onUpdate(long pos)
- Mappings:
Namespace Name Mixin selector official aLcmq;a(J)Vintermediary method_19288Lnet/minecraft/class_4180;method_19288(J)Vnamed onUpdateLnet/minecraft/world/storage/SerializingRegionBasedStorage;onUpdate(J)V
-
getDataVersion
private static int getDataVersion(com.mojang.serialization.Dynamic<?> dynamic)
- Mappings:
Namespace Name Mixin selector official aLcmq;a(Lcom/mojang/serialization/Dynamic;)Iintermediary method_20369Lnet/minecraft/class_4180;method_20369(Lcom/mojang/serialization/Dynamic;)Inamed getDataVersionLnet/minecraft/world/storage/SerializingRegionBasedStorage;getDataVersion(Lcom/mojang/serialization/Dynamic;)I
-
saveChunk
public void saveChunk(ChunkPos pos)
- Mappings:
Namespace Name Mixin selector official aLcmq;a(Lbuw;)Vintermediary method_20436Lnet/minecraft/class_4180;method_20436(Lnet/minecraft/class_1923;)Vnamed saveChunkLnet/minecraft/world/storage/SerializingRegionBasedStorage;saveChunk(Lnet/minecraft/util/math/ChunkPos;)V
-
close
public void close() throws IOException- 指定者:
close在接口中AutoCloseable- 抛出:
IOException- Mappings:
Namespace Name Mixin selector official closeLcmq;close()Vintermediary closeLnet/minecraft/class_4180;close()Vnamed closeLnet/minecraft/world/storage/SerializingRegionBasedStorage;close()V
-
-