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> stopwatches) booleanupdate(Identifier id, UnaryOperator<Stopwatch> update)
-
Field Details
-
CODEC
-
TYPE
-
stopwatches
-
-
Constructor Details
-
Stopwatches
private Stopwatches()
-
-
Method Details
-
unpack
-
pack
-
get
-
add
-
update
-
remove
-
isDirty
-
ids
-
currentTime
public static long currentTime()
-