Package net.minecraft.world
Class PersistentStateManager
java.lang.Object
net.minecraft.world.PersistentStateManager
public class PersistentStateManager extends Object
- Mappings:
Namespace Name official ddq
intermediary net/minecraft/class_26
named net/minecraft/world/PersistentStateManager
-
Field Summary
Fields Modifier and Type Field Description private com.mojang.datafixers.DataFixer
dataFixer
private File
directory
private Map<String,PersistentState>
loadedStates
private static Logger
LOGGER
-
Constructor Summary
Constructors Constructor Description PersistentStateManager(File directory, com.mojang.datafixers.DataFixer dataFixer)
-
Method Summary
Modifier and Type Method Description <T extends PersistentState>
Tget(Function<CompoundTag,T> function, String id)
private File
getFile(String id)
<T extends PersistentState>
TgetOrCreate(Function<CompoundTag,T> function, Supplier<T> supplier, String string)
private boolean
isCompressed(PushbackInputStream pushbackInputStream)
private <T extends PersistentState>
TreadFromFile(Function<CompoundTag,T> function, String id)
CompoundTag
readTag(String id, int dataVersion)
void
save()
void
set(String string, PersistentState persistentState)
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official a
Lddq;a:Lorg/apache/logging/log4j/Logger;
intermediary field_136
Lnet/minecraft/class_26;field_136:Lorg/apache/logging/log4j/Logger;
named LOGGER
Lnet/minecraft/world/PersistentStateManager;LOGGER:Lorg/apache/logging/log4j/Logger;
-
loadedStates
- Mappings:
Namespace Name Mixin selector official b
Lddq;b:Ljava/util/Map;
intermediary field_134
Lnet/minecraft/class_26;field_134:Ljava/util/Map;
named loadedStates
Lnet/minecraft/world/PersistentStateManager;loadedStates:Ljava/util/Map;
-
dataFixer
private final com.mojang.datafixers.DataFixer dataFixer- Mappings:
Namespace Name Mixin selector official c
Lddq;c:Lcom/mojang/datafixers/DataFixer;
intermediary field_17663
Lnet/minecraft/class_26;field_17663:Lcom/mojang/datafixers/DataFixer;
named dataFixer
Lnet/minecraft/world/PersistentStateManager;dataFixer:Lcom/mojang/datafixers/DataFixer;
-
directory
- Mappings:
Namespace Name Mixin selector official d
Lddq;d:Ljava/io/File;
intermediary field_17664
Lnet/minecraft/class_26;field_17664:Ljava/io/File;
named directory
Lnet/minecraft/world/PersistentStateManager;directory:Ljava/io/File;
-
-
Constructor Details
-
PersistentStateManager
- Mappings:
Namespace Name Mixin selector official <init>
Lddq;<init>(Ljava/io/File;Lcom/mojang/datafixers/DataFixer;)V
intermediary <init>
Lnet/minecraft/class_26;<init>(Ljava/io/File;Lcom/mojang/datafixers/DataFixer;)V
named <init>
Lnet/minecraft/world/PersistentStateManager;<init>(Ljava/io/File;Lcom/mojang/datafixers/DataFixer;)V
-
-
Method Details
-
getFile
- Mappings:
Namespace Name Mixin selector official a
Lddq;a(Ljava/lang/String;)Ljava/io/File;
intermediary method_17922
Lnet/minecraft/class_26;method_17922(Ljava/lang/String;)Ljava/io/File;
named getFile
Lnet/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 a
Lddq;a(Ljava/util/function/Function;Ljava/util/function/Supplier;Ljava/lang/String;)Lddg;
intermediary method_17924
Lnet/minecraft/class_26;method_17924(Ljava/util/function/Function;Ljava/util/function/Supplier;Ljava/lang/String;)Lnet/minecraft/class_18;
named getOrCreate
Lnet/minecraft/world/PersistentStateManager;getOrCreate(Ljava/util/function/Function;Ljava/util/function/Supplier;Ljava/lang/String;)Lnet/minecraft/world/PersistentState;
-
get
- Mappings:
Namespace Name Mixin selector official a
Lddq;a(Ljava/util/function/Function;Ljava/lang/String;)Lddg;
intermediary method_20786
Lnet/minecraft/class_26;method_20786(Ljava/util/function/Function;Ljava/lang/String;)Lnet/minecraft/class_18;
named get
Lnet/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 b
Lddq;b(Ljava/util/function/Function;Ljava/lang/String;)Lddg;
intermediary method_120
Lnet/minecraft/class_26;method_120(Ljava/util/function/Function;Ljava/lang/String;)Lnet/minecraft/class_18;
named readFromFile
Lnet/minecraft/world/PersistentStateManager;readFromFile(Ljava/util/function/Function;Ljava/lang/String;)Lnet/minecraft/world/PersistentState;
-
set
- Mappings:
Namespace Name Mixin selector official a
Lddq;a(Ljava/lang/String;Lddg;)V
intermediary method_123
Lnet/minecraft/class_26;method_123(Ljava/lang/String;Lnet/minecraft/class_18;)V
named set
Lnet/minecraft/world/PersistentStateManager;set(Ljava/lang/String;Lnet/minecraft/world/PersistentState;)V
-
readTag
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector official a
Lddq;a(Ljava/lang/String;I)Lmq;
intermediary method_17923
Lnet/minecraft/class_26;method_17923(Ljava/lang/String;I)Lnet/minecraft/class_2487;
named readTag
Lnet/minecraft/world/PersistentStateManager;readTag(Ljava/lang/String;I)Lnet/minecraft/nbt/CompoundTag;
-
isCompressed
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector official a
Lddq;a(Ljava/io/PushbackInputStream;)Z
intermediary method_17921
Lnet/minecraft/class_26;method_17921(Ljava/io/PushbackInputStream;)Z
named isCompressed
Lnet/minecraft/world/PersistentStateManager;isCompressed(Ljava/io/PushbackInputStream;)Z
-
save
public void save()- Mappings:
Namespace Name Mixin selector official a
Lddq;a()V
intermediary method_125
Lnet/minecraft/class_26;method_125()V
named save
Lnet/minecraft/world/PersistentStateManager;save()V
-