Class StopwatchPersistentState

java.lang.Object
net.minecraft.world.PersistentState
net.minecraft.world.timer.stopwatch.StopwatchPersistentState

public class StopwatchPersistentState extends PersistentState
Mappings:
Namespace Name
named net/minecraft/world/timer/stopwatch/StopwatchPersistentState
intermediary net/minecraft/class_12110
official cdi
  • Field Details

    • CODEC

      private static final com.mojang.serialization.Codec<StopwatchPersistentState> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/world/timer/stopwatch/StopwatchPersistentState;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_63285 Lnet/minecraft/class_12110;field_63285:Lcom/mojang/serialization/Codec;
      official b Lcdi;b:Lcom/mojang/serialization/Codec;
    • STATE_TYPE

      public static final PersistentStateType<StopwatchPersistentState> STATE_TYPE
      Mappings:
      Namespace Name Mixin selector
      named STATE_TYPE Lnet/minecraft/world/timer/stopwatch/StopwatchPersistentState;STATE_TYPE:Lnet/minecraft/world/PersistentStateType;
      intermediary field_63284 Lnet/minecraft/class_12110;field_63284:Lnet/minecraft/class_10741;
      official a Lcdi;a:Lfki;
    • stopwatches

      private final Map<Identifier,Stopwatch> stopwatches
      Mappings:
      Namespace Name Mixin selector
      named stopwatches Lnet/minecraft/world/timer/stopwatch/StopwatchPersistentState;stopwatches:Ljava/util/Map;
      intermediary field_63286 Lnet/minecraft/class_12110;field_63286:Ljava/util/Map;
      official c Lcdi;c:Ljava/util/Map;
  • Constructor Details

    • StopwatchPersistentState

      private StopwatchPersistentState()
  • Method Details

    • fromElapsedTimes

      private static StopwatchPersistentState fromElapsedTimes(Map<Identifier,Long> times)
      Mappings:
      Namespace Name Mixin selector
      named fromElapsedTimes Lnet/minecraft/world/timer/stopwatch/StopwatchPersistentState;fromElapsedTimes(Ljava/util/Map;)Lnet/minecraft/world/timer/stopwatch/StopwatchPersistentState;
      intermediary method_75110 Lnet/minecraft/class_12110;method_75110(Ljava/util/Map;)Lnet/minecraft/class_12110;
      official a Lcdi;a(Ljava/util/Map;)Lcdi;
    • toElapsedTimes

      private Map<Identifier,Long> toElapsedTimes()
      Mappings:
      Namespace Name Mixin selector
      named toElapsedTimes Lnet/minecraft/world/timer/stopwatch/StopwatchPersistentState;toElapsedTimes()Ljava/util/Map;
      intermediary method_75116 Lnet/minecraft/class_12110;method_75116()Ljava/util/Map;
      official d Lcdi;d()Ljava/util/Map;
    • get

      Mappings:
      Namespace Name Mixin selector
      named get Lnet/minecraft/world/timer/stopwatch/StopwatchPersistentState;get(Lnet/minecraft/util/Identifier;)Lnet/minecraft/world/timer/stopwatch/Stopwatch;
      intermediary method_75106 Lnet/minecraft/class_12110;method_75106(Lnet/minecraft/class_2960;)Lnet/minecraft/class_12109;
      official a Lcdi;a(Lamy;)Lcdh;
    • add

      public boolean add(Identifier id, Stopwatch stopwatch)
      Only has effect if there is no stopwatch by the identifier id.
      Returns:
      true if the operation succeeded.
      Mappings:
      Namespace Name Mixin selector
      named add Lnet/minecraft/world/timer/stopwatch/StopwatchPersistentState;add(Lnet/minecraft/util/Identifier;Lnet/minecraft/world/timer/stopwatch/Stopwatch;)Z
      intermediary method_75107 Lnet/minecraft/class_12110;method_75107(Lnet/minecraft/class_2960;Lnet/minecraft/class_12109;)Z
      official a Lcdi;a(Lamy;Lcdh;)Z
    • update

      public boolean update(Identifier id, UnaryOperator<Stopwatch> f)
      Only has effect if there is a stopwatch by the identifier id.
      Returns:
      true if the operation succeeded.
      Mappings:
      Namespace Name Mixin selector
      named update Lnet/minecraft/world/timer/stopwatch/StopwatchPersistentState;update(Lnet/minecraft/util/Identifier;Ljava/util/function/UnaryOperator;)Z
      intermediary method_75108 Lnet/minecraft/class_12110;method_75108(Lnet/minecraft/class_2960;Ljava/util/function/UnaryOperator;)Z
      official a Lcdi;a(Lamy;Ljava/util/function/UnaryOperator;)Z
    • remove

      public boolean remove(Identifier id)
      Only has effect if there is a stopwatch by the identifier id.
      Returns:
      true if the operation succeeded.
      Mappings:
      Namespace Name Mixin selector
      named remove Lnet/minecraft/world/timer/stopwatch/StopwatchPersistentState;remove(Lnet/minecraft/util/Identifier;)Z
      intermediary method_75114 Lnet/minecraft/class_12110;method_75114(Lnet/minecraft/class_2960;)Z
      official b Lcdi;b(Lamy;)Z
    • isDirty

      public boolean isDirty()
      Overrides:
      isDirty in class PersistentState
      Mappings:
      Namespace Name Mixin selector
      named isDirty Lnet/minecraft/world/PersistentState;isDirty()Z
      intermediary method_79 Lnet/minecraft/class_18;method_79()Z
      official Q_ Lfkh;Q_()Z
    • keys

      public List<Identifier> keys()
      Mappings:
      Namespace Name Mixin selector
      named keys Lnet/minecraft/world/timer/stopwatch/StopwatchPersistentState;keys()Ljava/util/List;
      intermediary method_75113 Lnet/minecraft/class_12110;method_75113()Ljava/util/List;
      official b Lcdi;b()Ljava/util/List;
    • getTimeMs

      public static long getTimeMs()
      Mappings:
      Namespace Name Mixin selector
      named getTimeMs Lnet/minecraft/world/timer/stopwatch/StopwatchPersistentState;getTimeMs()J
      intermediary method_75115 Lnet/minecraft/class_12110;method_75115()J
      official c Lcdi;c()J