Class ServerGameRules

java.lang.Object
net.minecraft.world.rule.ServerGameRules

public final class ServerGameRules extends Object
Mappings:
Namespace Name
named net/minecraft/world/rule/ServerGameRules
intermediary net/minecraft/class_12280
official esk
  • Field Details

    • CODEC

      public static final com.mojang.serialization.Codec<ServerGameRules> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/world/rule/ServerGameRules;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_64176 Lnet/minecraft/class_12280;field_64176:Lcom/mojang/serialization/Codec;
      official a Lesk;a:Lcom/mojang/serialization/Codec;
    • ruleValueMap

      private final Reference2ObjectMap<GameRule<?>,Object> ruleValueMap
      Mappings:
      Namespace Name Mixin selector
      named ruleValueMap Lnet/minecraft/world/rule/ServerGameRules;ruleValueMap:Lit/unimi/dsi/fastutil/objects/Reference2ObjectMap;
      intermediary field_64177 Lnet/minecraft/class_12280;field_64177:Lit/unimi/dsi/fastutil/objects/Reference2ObjectMap;
      official b Lesk;b:Lit/unimi/dsi/fastutil/objects/Reference2ObjectMap;
  • Constructor Details

  • Method Details

    • create

      private static ServerGameRules create(Map<GameRule<?>,Object> map)
      Mappings:
      Namespace Name Mixin selector
      named create Lnet/minecraft/world/rule/ServerGameRules;create(Ljava/util/Map;)Lnet/minecraft/world/rule/ServerGameRules;
      intermediary method_76170 Lnet/minecraft/class_12280;method_76170(Ljava/util/Map;)Lnet/minecraft/class_12280;
      official a Lesk;a(Ljava/util/Map;)Lesk;
    • create

      public static ServerGameRules create()
      Mappings:
      Namespace Name Mixin selector
      named create Lnet/minecraft/world/rule/ServerGameRules;create()Lnet/minecraft/world/rule/ServerGameRules;
      intermediary method_76163 Lnet/minecraft/class_12280;method_76163()Lnet/minecraft/class_12280;
      official a Lesk;a()Lesk;
    • create

      public static ServerGameRules create(Stream<GameRule<?>> stream)
      Mappings:
      Namespace Name Mixin selector
      named create Lnet/minecraft/world/rule/ServerGameRules;create(Ljava/util/stream/Stream;)Lnet/minecraft/world/rule/ServerGameRules;
      intermediary method_76171 Lnet/minecraft/class_12280;method_76171(Ljava/util/stream/Stream;)Lnet/minecraft/class_12280;
      official a Lesk;a(Ljava/util/stream/Stream;)Lesk;
    • copyFrom

      public static ServerGameRules copyFrom(ServerGameRules rules)
      Mappings:
      Namespace Name Mixin selector
      named copyFrom Lnet/minecraft/world/rule/ServerGameRules;copyFrom(Lnet/minecraft/world/rule/ServerGameRules;)Lnet/minecraft/world/rule/ServerGameRules;
      intermediary method_76166 Lnet/minecraft/class_12280;method_76166(Lnet/minecraft/class_12280;)Lnet/minecraft/class_12280;
      official a Lesk;a(Lesk;)Lesk;
    • contains

      public boolean contains(GameRule<?> rule)
      Mappings:
      Namespace Name Mixin selector
      named contains Lnet/minecraft/world/rule/ServerGameRules;contains(Lnet/minecraft/world/rule/GameRule;)Z
      intermediary method_76164 Lnet/minecraft/class_12280;method_76164(Lnet/minecraft/class_12279;)Z
      official a Lesk;a(Lesi;)Z
    • getValue

      public <T> @Nullable T getValue(GameRule<T> rule)
      Mappings:
      Namespace Name Mixin selector
      named getValue Lnet/minecraft/world/rule/ServerGameRules;getValue(Lnet/minecraft/world/rule/GameRule;)Ljava/lang/Object;
      intermediary method_76173 Lnet/minecraft/class_12280;method_76173(Lnet/minecraft/class_12279;)Ljava/lang/Object;
      official b Lesk;b(Lesi;)Ljava/lang/Object;
    • putValue

      public <T> void putValue(GameRule<T> rule, T value)
      Mappings:
      Namespace Name Mixin selector
      named putValue Lnet/minecraft/world/rule/ServerGameRules;putValue(Lnet/minecraft/world/rule/GameRule;Ljava/lang/Object;)V
      intermediary method_76165 Lnet/minecraft/class_12280;method_76165(Lnet/minecraft/class_12279;Ljava/lang/Object;)V
      official a Lesk;a(Lesi;Ljava/lang/Object;)V
    • remove

      public <T> @Nullable T remove(GameRule<T> rule)
      Mappings:
      Namespace Name Mixin selector
      named remove Lnet/minecraft/world/rule/ServerGameRules;remove(Lnet/minecraft/world/rule/GameRule;)Ljava/lang/Object;
      intermediary method_76176 Lnet/minecraft/class_12280;method_76176(Lnet/minecraft/class_12279;)Ljava/lang/Object;
      official c Lesk;c(Lesi;)Ljava/lang/Object;
    • getRules

      public Set<GameRule<?>> getRules()
      Mappings:
      Namespace Name Mixin selector
      named getRules Lnet/minecraft/world/rule/ServerGameRules;getRules()Ljava/util/Set;
      intermediary method_76172 Lnet/minecraft/class_12280;method_76172()Ljava/util/Set;
      official b Lesk;b()Ljava/util/Set;
    • getSize

      public int getSize()
      Mappings:
      Namespace Name Mixin selector
      named getSize Lnet/minecraft/world/rule/ServerGameRules;getSize()I
      intermediary method_76175 Lnet/minecraft/class_12280;method_76175()I
      official c Lesk;c()I
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • merge

      public ServerGameRules merge(ServerGameRules override)
      Mappings:
      Namespace Name Mixin selector
      named merge Lnet/minecraft/world/rule/ServerGameRules;merge(Lnet/minecraft/world/rule/ServerGameRules;)Lnet/minecraft/world/rule/ServerGameRules;
      intermediary method_76174 Lnet/minecraft/class_12280;method_76174(Lnet/minecraft/class_12280;)Lnet/minecraft/class_12280;
      official b Lesk;b(Lesk;)Lesk;
    • copyValuesIf

      public void copyValuesIf(ServerGameRules rules, Predicate<GameRule<?>> predicate)
      Mappings:
      Namespace Name Mixin selector
      named copyValuesIf Lnet/minecraft/world/rule/ServerGameRules;copyValuesIf(Lnet/minecraft/world/rule/ServerGameRules;Ljava/util/function/Predicate;)V
      intermediary method_76168 Lnet/minecraft/class_12280;method_76168(Lnet/minecraft/class_12280;Ljava/util/function/Predicate;)V
      official a Lesk;a(Lesk;Ljava/util/function/Predicate;)V
    • copyValue

      private static <T> void copyValue(ServerGameRules oldRules, GameRule<T> rule, ServerGameRules newRules)
      Mappings:
      Namespace Name Mixin selector
      named copyValue Lnet/minecraft/world/rule/ServerGameRules;copyValue(Lnet/minecraft/world/rule/ServerGameRules;Lnet/minecraft/world/rule/GameRule;Lnet/minecraft/world/rule/ServerGameRules;)V
      intermediary method_76167 Lnet/minecraft/class_12280;method_76167(Lnet/minecraft/class_12280;Lnet/minecraft/class_12279;Lnet/minecraft/class_12280;)V
      official a Lesk;a(Lesk;Lesi;Lesk;)V
    • getRuleValueMap

      private Reference2ObjectMap<GameRule<?>,Object> getRuleValueMap()
      Mappings:
      Namespace Name Mixin selector
      named getRuleValueMap Lnet/minecraft/world/rule/ServerGameRules;getRuleValueMap()Lit/unimi/dsi/fastutil/objects/Reference2ObjectMap;
      intermediary method_76177 Lnet/minecraft/class_12280;method_76177()Lit/unimi/dsi/fastutil/objects/Reference2ObjectMap;
      official d Lesk;d()Lit/unimi/dsi/fastutil/objects/Reference2ObjectMap;
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
      Mappings:
      Namespace Name Mixin selector
      named equals Lnet/minecraft/world/rule/ServerGameRules;equals(Ljava/lang/Object;)Z
      intermediary equals Lnet/minecraft/class_12280;equals(Ljava/lang/Object;)Z
      official equals Lesk;equals(Ljava/lang/Object;)Z
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object