类 PersistentStateManager
- java.lang.Object
-
- net.minecraft.world.PersistentStateManager
-
public class PersistentStateManager extends Object
- Mappings:
Namespace Name official dgxintermediary net/minecraft/class_26named net/minecraft/world/PersistentStateManager
-
-
字段概要
字段 修饰符和类型 字段 说明 private com.mojang.datafixers.DataFixerdataFixerprivate Filedirectoryprivate Map<String,PersistentState>loadedStatesprivate static LoggerLOGGER
-
构造器概要
构造器 构造器 说明 PersistentStateManager(File directory, com.mojang.datafixers.DataFixer dataFixer)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 <T extends PersistentState>
Tget(Function<CompoundTag,T> function, String id)private FilegetFile(String id)<T extends PersistentState>
TgetOrCreate(Function<CompoundTag,T> function, Supplier<T> supplier, String string)private booleanisCompressed(PushbackInputStream pushbackInputStream)private <T extends PersistentState>
TreadFromFile(Function<CompoundTag,T> function, String id)CompoundTagreadNbt(String id, int dataVersion)voidsave()voidset(String string, PersistentState persistentState)
-
-
-
字段详细资料
-
LOGGER
private static final Logger LOGGER
- Mappings:
Namespace Name Mixin selector official aLdgx;a:Lorg/apache/logging/log4j/Logger;intermediary field_136Lnet/minecraft/class_26;field_136:Lorg/apache/logging/log4j/Logger;named LOGGERLnet/minecraft/world/PersistentStateManager;LOGGER:Lorg/apache/logging/log4j/Logger;
-
loadedStates
private final Map<String,PersistentState> loadedStates
- Mappings:
Namespace Name Mixin selector official bLdgx;b:Ljava/util/Map;intermediary field_134Lnet/minecraft/class_26;field_134:Ljava/util/Map;named loadedStatesLnet/minecraft/world/PersistentStateManager;loadedStates:Ljava/util/Map;
-
dataFixer
private final com.mojang.datafixers.DataFixer dataFixer
- Mappings:
Namespace Name Mixin selector official cLdgx;c:Lcom/mojang/datafixers/DataFixer;intermediary field_17663Lnet/minecraft/class_26;field_17663:Lcom/mojang/datafixers/DataFixer;named dataFixerLnet/minecraft/world/PersistentStateManager;dataFixer:Lcom/mojang/datafixers/DataFixer;
-
directory
private final File directory
- Mappings:
Namespace Name Mixin selector official dLdgx;d:Ljava/io/File;intermediary field_17664Lnet/minecraft/class_26;field_17664:Ljava/io/File;named directoryLnet/minecraft/world/PersistentStateManager;directory:Ljava/io/File;
-
-
构造器详细资料
-
PersistentStateManager
public PersistentStateManager(File directory, com.mojang.datafixers.DataFixer dataFixer)
- Mappings:
Namespace Name Mixin selector official <init>Ldgx;<init>(Ljava/io/File;Lcom/mojang/datafixers/DataFixer;)Vintermediary <init>Lnet/minecraft/class_26;<init>(Ljava/io/File;Lcom/mojang/datafixers/DataFixer;)Vnamed <init>Lnet/minecraft/world/PersistentStateManager;<init>(Ljava/io/File;Lcom/mojang/datafixers/DataFixer;)V
-
-
方法详细资料
-
getFile
private File getFile(String id)
- Mappings:
Namespace Name Mixin selector official aLdgx;a(Ljava/lang/String;)Ljava/io/File;intermediary method_17922Lnet/minecraft/class_26;method_17922(Ljava/lang/String;)Ljava/io/File;named getFileLnet/minecraft/world/PersistentStateManager;getFile(Ljava/lang/String;)Ljava/io/File;
-
getOrCreate
public <T extends PersistentState> T getOrCreate(Function<CompoundTag,T> function, Supplier<T> supplier, String string)
- Mappings:
Namespace Name Mixin selector official aLdgx;a(Ljava/util/function/Function;Ljava/util/function/Supplier;Ljava/lang/String;)Ldgn;intermediary method_17924Lnet/minecraft/class_26;method_17924(Ljava/util/function/Function;Ljava/util/function/Supplier;Ljava/lang/String;)Lnet/minecraft/class_18;named getOrCreateLnet/minecraft/world/PersistentStateManager;getOrCreate(Ljava/util/function/Function;Ljava/util/function/Supplier;Ljava/lang/String;)Lnet/minecraft/world/PersistentState;
-
get
@Nullable public <T extends PersistentState> T get(Function<CompoundTag,T> function, String id)
- Mappings:
Namespace Name Mixin selector official aLdgx;a(Ljava/util/function/Function;Ljava/lang/String;)Ldgn;intermediary method_20786Lnet/minecraft/class_26;method_20786(Ljava/util/function/Function;Ljava/lang/String;)Lnet/minecraft/class_18;named getLnet/minecraft/world/PersistentStateManager;get(Ljava/util/function/Function;Ljava/lang/String;)Lnet/minecraft/world/PersistentState;
-
readFromFile
@Nullable private <T extends PersistentState> T readFromFile(Function<CompoundTag,T> function, String id)
- Mappings:
Namespace Name Mixin selector official bLdgx;b(Ljava/util/function/Function;Ljava/lang/String;)Ldgn;intermediary method_120Lnet/minecraft/class_26;method_120(Ljava/util/function/Function;Ljava/lang/String;)Lnet/minecraft/class_18;named readFromFileLnet/minecraft/world/PersistentStateManager;readFromFile(Ljava/util/function/Function;Ljava/lang/String;)Lnet/minecraft/world/PersistentState;
-
set
public void set(String string, PersistentState persistentState)
- Mappings:
Namespace Name Mixin selector official aLdgx;a(Ljava/lang/String;Ldgn;)Vintermediary method_123Lnet/minecraft/class_26;method_123(Ljava/lang/String;Lnet/minecraft/class_18;)Vnamed setLnet/minecraft/world/PersistentStateManager;set(Ljava/lang/String;Lnet/minecraft/world/PersistentState;)V
-
readNbt
public CompoundTag readNbt(String id, int dataVersion) throws IOException
- 抛出:
IOException- Mappings:
Namespace Name Mixin selector official aLdgx;a(Ljava/lang/String;I)Lmv;intermediary method_17923Lnet/minecraft/class_26;method_17923(Ljava/lang/String;I)Lnet/minecraft/class_2487;named readNbtLnet/minecraft/world/PersistentStateManager;readNbt(Ljava/lang/String;I)Lnet/minecraft/nbt/CompoundTag;
-
isCompressed
private boolean isCompressed(PushbackInputStream pushbackInputStream) throws IOException
- 抛出:
IOException- Mappings:
Namespace Name Mixin selector official aLdgx;a(Ljava/io/PushbackInputStream;)Zintermediary method_17921Lnet/minecraft/class_26;method_17921(Ljava/io/PushbackInputStream;)Znamed isCompressedLnet/minecraft/world/PersistentStateManager;isCompressed(Ljava/io/PushbackInputStream;)Z
-
save
public void save()
- Mappings:
Namespace Name Mixin selector official aLdgx;a()Vintermediary method_125Lnet/minecraft/class_26;method_125()Vnamed saveLnet/minecraft/world/PersistentStateManager;save()V
-
-