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 id, Stopwatch stopwatch) static long@Nullable Stopwatchget(Identifier id) ids()booleanisDirty()private Map<Identifier, Long> pack()booleanremove(Identifier id) private static Stopwatchesunpack(Map<Identifier, Long> map) booleanupdate(Identifier id, UnaryOperator<Stopwatch> updater)