net.minecraft.world.timer.stopwatch

public class StopwatchPersistentState

extends PersistentState

net.minecraft.world.Stopwatches
net.minecraft.class_12110
net.minecraft.world.timer.stopwatch.StopwatchPersistentState

Field summary

Modifier and TypeField
private static final com.mojang.serialization.Codec<StopwatchPersistentState>
CODEC
field_63285
CODEC
public static final PersistentStateType<StopwatchPersistentState>
TYPE
field_63284
STATE_TYPE
private final Map<Identifier, Stopwatch>
stopwatches
field_63286
stopwatches

Constructor summary

ModifierConstructor
private ()

Method summary

Modifier and TypeMethod
private static StopwatchPersistentState
unpack(Map<Identifier, Long> stopwatches)
method_75110(Map<class_2960, Long> arg0)
fromElapsedTimes(Map<Identifier, Long> times)
private Map<Identifier, Long>
pack()
method_75116()
toElapsedTimes()
public Stopwatch
get(Identifier id)
method_75106(class_2960 arg0)
get(Identifier id)
public boolean
add(Identifier id, Stopwatch stopwatch)
method_75107(class_2960 arg0, class_12109 arg1)
add(Identifier id, Stopwatch stopwatch)
public boolean
update(Identifier id, UnaryOperator<Stopwatch> update)
method_75108(class_2960 arg0, UnaryOperator<class_12109> arg1)
update(Identifier id, UnaryOperator<Stopwatch> f)
public boolean
remove(Identifier id)
method_75114(class_2960 arg0)
remove(Identifier id)
public boolean
isDirty()
method_79()
isDirty()
public List<Identifier>
ids()
method_75113()
keys()
public static long
currentTime()
method_75115()
getTimeMs()
private static Stopwatch
lambda$update$0(UnaryOperator arg0, Identifier arg1, Stopwatch arg2)
method_75112(UnaryOperator arg0, class_2960 arg1, class_12109 arg2)
method_75112(UnaryOperator arg0, Identifier id_, Stopwatch stopwatch)
private static void
lambda$pack$0(Map arg0, long arg1, Identifier arg2, Stopwatch arg3)
method_75111(Map arg0, long arg1, class_2960 arg2, class_12109 arg3)
method_75111(Map arg0, long arg1, Identifier id, Stopwatch stopwatch)
private static void
lambda$unpack$0(Stopwatches arg0, long arg1, Identifier arg2, Long arg3)
method_75109(class_12110 arg0, long arg1, class_2960 arg2, Long arg3)
method_75109(StopwatchPersistentState arg0, long arg1, Identifier id, Long time)