Package net.minecraft.world
Class Stopwatches
java.lang.Object
net.minecraft.world.level.saveddata.SavedData
net.minecraft.world.Stopwatches
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final com.mojang.serialization.Codec<Stopwatches> private final Map<Identifier, Stopwatch> static final SavedDataType<Stopwatches> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanadd(Identifier pId, Stopwatch pStopwatch) static long@Nullable Stopwatchget(Identifier pId) ids()booleanisDirty()private Map<Identifier, Long> pack()booleanremove(Identifier pId) private static Stopwatchesunpack(Map<Identifier, Long> pMap) booleanupdate(Identifier pId, UnaryOperator<Stopwatch> pUpdater)