Class StopwatchPersistentState
java.lang.Object
net.minecraft.world.PersistentState
net.minecraft.world.timer.stopwatch.StopwatchPersistentState
- Mappings:
Namespace Name named net/minecraft/world/timer/stopwatch/StopwatchPersistentStateintermediary net/minecraft/class_12110official cdi
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final com.mojang.serialization.Codec<StopwatchPersistentState> static final PersistentStateType<StopwatchPersistentState> private final Map<Identifier, Stopwatch> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanadd(Identifier id, Stopwatch stopwatch) Only has effect if there is no stopwatch by the identifierid.private static StopwatchPersistentStatefromElapsedTimes(Map<Identifier, Long> times) get(Identifier id) static longbooleanisDirty()keys()booleanremove(Identifier id) Only has effect if there is a stopwatch by the identifierid.private Map<Identifier, Long> booleanupdate(Identifier id, UnaryOperator<Stopwatch> f) Only has effect if there is a stopwatch by the identifierid.Methods inherited from class net.minecraft.world.PersistentState
markDirty, setDirty
-
Field Details
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/world/timer/stopwatch/StopwatchPersistentState;CODEC:Lcom/mojang/serialization/Codec;intermediary field_63285Lnet/minecraft/class_12110;field_63285:Lcom/mojang/serialization/Codec;official bLcdi;b:Lcom/mojang/serialization/Codec;
-
STATE_TYPE
- Mappings:
Namespace Name Mixin selector named STATE_TYPELnet/minecraft/world/timer/stopwatch/StopwatchPersistentState;STATE_TYPE:Lnet/minecraft/world/PersistentStateType;intermediary field_63284Lnet/minecraft/class_12110;field_63284:Lnet/minecraft/class_10741;official aLcdi;a:Lfki;
-
stopwatches
- Mappings:
Namespace Name Mixin selector named stopwatchesLnet/minecraft/world/timer/stopwatch/StopwatchPersistentState;stopwatches:Ljava/util/Map;intermediary field_63286Lnet/minecraft/class_12110;field_63286:Ljava/util/Map;official cLcdi;c:Ljava/util/Map;
-
-
Constructor Details
-
StopwatchPersistentState
private StopwatchPersistentState()
-
-
Method Details
-
fromElapsedTimes
- Mappings:
Namespace Name Mixin selector named fromElapsedTimesLnet/minecraft/world/timer/stopwatch/StopwatchPersistentState;fromElapsedTimes(Ljava/util/Map;)Lnet/minecraft/world/timer/stopwatch/StopwatchPersistentState;intermediary method_75110Lnet/minecraft/class_12110;method_75110(Ljava/util/Map;)Lnet/minecraft/class_12110;official aLcdi;a(Ljava/util/Map;)Lcdi;
-
toElapsedTimes
- Mappings:
Namespace Name Mixin selector named toElapsedTimesLnet/minecraft/world/timer/stopwatch/StopwatchPersistentState;toElapsedTimes()Ljava/util/Map;intermediary method_75116Lnet/minecraft/class_12110;method_75116()Ljava/util/Map;official dLcdi;d()Ljava/util/Map;
-
get
- Mappings:
Namespace Name Mixin selector named getLnet/minecraft/world/timer/stopwatch/StopwatchPersistentState;get(Lnet/minecraft/util/Identifier;)Lnet/minecraft/world/timer/stopwatch/Stopwatch;intermediary method_75106Lnet/minecraft/class_12110;method_75106(Lnet/minecraft/class_2960;)Lnet/minecraft/class_12109;official aLcdi;a(Lamy;)Lcdh;
-
add
Only has effect if there is no stopwatch by the identifierid.- Returns:
trueif the operation succeeded.- Mappings:
Namespace Name Mixin selector named addLnet/minecraft/world/timer/stopwatch/StopwatchPersistentState;add(Lnet/minecraft/util/Identifier;Lnet/minecraft/world/timer/stopwatch/Stopwatch;)Zintermediary method_75107Lnet/minecraft/class_12110;method_75107(Lnet/minecraft/class_2960;Lnet/minecraft/class_12109;)Zofficial aLcdi;a(Lamy;Lcdh;)Z
-
update
Only has effect if there is a stopwatch by the identifierid.- Returns:
trueif the operation succeeded.- Mappings:
Namespace Name Mixin selector named updateLnet/minecraft/world/timer/stopwatch/StopwatchPersistentState;update(Lnet/minecraft/util/Identifier;Ljava/util/function/UnaryOperator;)Zintermediary method_75108Lnet/minecraft/class_12110;method_75108(Lnet/minecraft/class_2960;Ljava/util/function/UnaryOperator;)Zofficial aLcdi;a(Lamy;Ljava/util/function/UnaryOperator;)Z
-
remove
Only has effect if there is a stopwatch by the identifierid.- Returns:
trueif the operation succeeded.- Mappings:
Namespace Name Mixin selector named removeLnet/minecraft/world/timer/stopwatch/StopwatchPersistentState;remove(Lnet/minecraft/util/Identifier;)Zintermediary method_75114Lnet/minecraft/class_12110;method_75114(Lnet/minecraft/class_2960;)Zofficial bLcdi;b(Lamy;)Z
-
isDirty
public boolean isDirty()- Overrides:
isDirtyin classPersistentState- Mappings:
Namespace Name Mixin selector named isDirtyLnet/minecraft/world/PersistentState;isDirty()Zintermediary method_79Lnet/minecraft/class_18;method_79()Zofficial Q_Lfkh;Q_()Z
-
keys
- Mappings:
Namespace Name Mixin selector named keysLnet/minecraft/world/timer/stopwatch/StopwatchPersistentState;keys()Ljava/util/List;intermediary method_75113Lnet/minecraft/class_12110;method_75113()Ljava/util/List;official bLcdi;b()Ljava/util/List;
-
getTimeMs
public static long getTimeMs()- Mappings:
Namespace Name Mixin selector named getTimeMsLnet/minecraft/world/timer/stopwatch/StopwatchPersistentState;getTimeMs()Jintermediary method_75115Lnet/minecraft/class_12110;method_75115()Jofficial cLcdi;c()J
-