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 esp
  • 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 Lesp;a:Lcom/mojang/serialization/Codec;
    • ruleValues

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

    • ServerGameRules

      ServerGameRules(Reference2ObjectMap<GameRule<?>,Object> ruleValues)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/world/rule/ServerGameRules;<init>(Lit/unimi/dsi/fastutil/objects/Reference2ObjectMap;)V
      intermediary <init> Lnet/minecraft/class_12280;<init>(Lit/unimi/dsi/fastutil/objects/Reference2ObjectMap;)V
      official <init> Lesp;<init>(Lit/unimi/dsi/fastutil/objects/Reference2ObjectMap;)V
  • Method Details

    • of

      private static ServerGameRules of(Map<GameRule<?>,Object> ruleValues)
      Mappings:
      Namespace Name Mixin selector
      named of Lnet/minecraft/world/rule/ServerGameRules;of(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 Lesp;a(Ljava/util/Map;)Lesp;
    • of

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

      public static ServerGameRules ofDefault(Stream<GameRule<?>> rules)
      Mappings:
      Namespace Name Mixin selector
      named ofDefault Lnet/minecraft/world/rule/ServerGameRules;ofDefault(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 Lesp;a(Ljava/util/stream/Stream;)Lesp;
    • copyOf

      public static ServerGameRules copyOf(ServerGameRules rules)
      Mappings:
      Namespace Name Mixin selector
      named copyOf Lnet/minecraft/world/rule/ServerGameRules;copyOf(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 Lesp;a(Lesp;)Lesp;
    • 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 Lesp;a(Lesn;)Z
    • get

      public <T> @Nullable T get(GameRule<T> rule)
      Mappings:
      Namespace Name Mixin selector
      named get Lnet/minecraft/world/rule/ServerGameRules;get(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 Lesp;b(Lesn;)Ljava/lang/Object;
    • put

      public <T> void put(GameRule<T> rule, T value)
      Mappings:
      Namespace Name Mixin selector
      named put Lnet/minecraft/world/rule/ServerGameRules;put(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 Lesp;a(Lesn;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 Lesp;c(Lesn;)Ljava/lang/Object;
    • keySet

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

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

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

      public ServerGameRules withOverride(ServerGameRules override)
      Mappings:
      Namespace Name Mixin selector
      named withOverride Lnet/minecraft/world/rule/ServerGameRules;withOverride(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 Lesp;b(Lesp;)Lesp;
    • copyFrom

      public void copyFrom(ServerGameRules rules, Predicate<GameRule<?>> predicate)
      Mappings:
      Namespace Name Mixin selector
      named copyFrom Lnet/minecraft/world/rule/ServerGameRules;copyFrom(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 Lesp;a(Lesp;Ljava/util/function/Predicate;)V
    • setFrom

      private static <T> void setFrom(ServerGameRules oldRules, GameRule<T> rule, ServerGameRules newRules)
      Mappings:
      Namespace Name Mixin selector
      named setFrom Lnet/minecraft/world/rule/ServerGameRules;setFrom(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 Lesp;a(Lesp;Lesn;Lesp;)V
    • getRuleValues

      private Reference2ObjectMap<GameRule<?>,Object> getRuleValues()
      Mappings:
      Namespace Name Mixin selector
      named getRuleValues Lnet/minecraft/world/rule/ServerGameRules;getRuleValues()Lit/unimi/dsi/fastutil/objects/Reference2ObjectMap;
      intermediary method_76177 Lnet/minecraft/class_12280;method_76177()Lit/unimi/dsi/fastutil/objects/Reference2ObjectMap;
      official d Lesp;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 Lesp;equals(Ljava/lang/Object;)Z
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object