Package net.minecraft.world.rule
Class ServerGameRules
java.lang.Object
net.minecraft.world.rule.ServerGameRules
- Mappings:
Namespace Name named net/minecraft/world/rule/ServerGameRulesintermediary net/minecraft/class_12280official esp
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<ServerGameRules> private final Reference2ObjectMap<GameRule<?>, Object> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidcopyFrom(ServerGameRules rules, Predicate<GameRule<?>> predicate) static ServerGameRulescopyOf(ServerGameRules rules) boolean<T> @Nullable Tprivate Reference2ObjectMap<GameRule<?>, Object> inthashCode()keySet()static ServerGameRulesof()private static ServerGameRulesstatic ServerGameRules<T> void<T> @Nullable Tprivate static <T> voidsetFrom(ServerGameRules oldRules, GameRule<T> rule, ServerGameRules newRules) intsize()toString()withOverride(ServerGameRules override)
-
Field Details
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/world/rule/ServerGameRules;CODEC:Lcom/mojang/serialization/Codec;intermediary field_64176Lnet/minecraft/class_12280;field_64176:Lcom/mojang/serialization/Codec;official aLesp;a:Lcom/mojang/serialization/Codec;
-
ruleValues
- Mappings:
Namespace Name Mixin selector named ruleValuesLnet/minecraft/world/rule/ServerGameRules;ruleValues:Lit/unimi/dsi/fastutil/objects/Reference2ObjectMap;intermediary field_64177Lnet/minecraft/class_12280;field_64177:Lit/unimi/dsi/fastutil/objects/Reference2ObjectMap;official bLesp;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;)Vintermediary <init>Lnet/minecraft/class_12280;<init>(Lit/unimi/dsi/fastutil/objects/Reference2ObjectMap;)Vofficial <init>Lesp;<init>(Lit/unimi/dsi/fastutil/objects/Reference2ObjectMap;)V
-
-
Method Details
-
of
- Mappings:
Namespace Name Mixin selector named ofLnet/minecraft/world/rule/ServerGameRules;of(Ljava/util/Map;)Lnet/minecraft/world/rule/ServerGameRules;intermediary method_76170Lnet/minecraft/class_12280;method_76170(Ljava/util/Map;)Lnet/minecraft/class_12280;official aLesp;a(Ljava/util/Map;)Lesp;
-
of
- Mappings:
Namespace Name Mixin selector named ofLnet/minecraft/world/rule/ServerGameRules;of()Lnet/minecraft/world/rule/ServerGameRules;intermediary method_76163Lnet/minecraft/class_12280;method_76163()Lnet/minecraft/class_12280;official aLesp;a()Lesp;
-
ofDefault
- Mappings:
Namespace Name Mixin selector named ofDefaultLnet/minecraft/world/rule/ServerGameRules;ofDefault(Ljava/util/stream/Stream;)Lnet/minecraft/world/rule/ServerGameRules;intermediary method_76171Lnet/minecraft/class_12280;method_76171(Ljava/util/stream/Stream;)Lnet/minecraft/class_12280;official aLesp;a(Ljava/util/stream/Stream;)Lesp;
-
copyOf
- Mappings:
Namespace Name Mixin selector named copyOfLnet/minecraft/world/rule/ServerGameRules;copyOf(Lnet/minecraft/world/rule/ServerGameRules;)Lnet/minecraft/world/rule/ServerGameRules;intermediary method_76166Lnet/minecraft/class_12280;method_76166(Lnet/minecraft/class_12280;)Lnet/minecraft/class_12280;official aLesp;a(Lesp;)Lesp;
-
contains
- Mappings:
Namespace Name Mixin selector named containsLnet/minecraft/world/rule/ServerGameRules;contains(Lnet/minecraft/world/rule/GameRule;)Zintermediary method_76164Lnet/minecraft/class_12280;method_76164(Lnet/minecraft/class_12279;)Zofficial aLesp;a(Lesn;)Z
-
get
- Mappings:
Namespace Name Mixin selector named getLnet/minecraft/world/rule/ServerGameRules;get(Lnet/minecraft/world/rule/GameRule;)Ljava/lang/Object;intermediary method_76173Lnet/minecraft/class_12280;method_76173(Lnet/minecraft/class_12279;)Ljava/lang/Object;official bLesp;b(Lesn;)Ljava/lang/Object;
-
put
- Mappings:
Namespace Name Mixin selector named putLnet/minecraft/world/rule/ServerGameRules;put(Lnet/minecraft/world/rule/GameRule;Ljava/lang/Object;)Vintermediary method_76165Lnet/minecraft/class_12280;method_76165(Lnet/minecraft/class_12279;Ljava/lang/Object;)Vofficial aLesp;a(Lesn;Ljava/lang/Object;)V
-
remove
- Mappings:
Namespace Name Mixin selector named removeLnet/minecraft/world/rule/ServerGameRules;remove(Lnet/minecraft/world/rule/GameRule;)Ljava/lang/Object;intermediary method_76176Lnet/minecraft/class_12280;method_76176(Lnet/minecraft/class_12279;)Ljava/lang/Object;official cLesp;c(Lesn;)Ljava/lang/Object;
-
keySet
- Mappings:
Namespace Name Mixin selector named keySetLnet/minecraft/world/rule/ServerGameRules;keySet()Ljava/util/Set;intermediary method_76172Lnet/minecraft/class_12280;method_76172()Ljava/util/Set;official bLesp;b()Ljava/util/Set;
-
size
public int size()- Mappings:
Namespace Name Mixin selector named sizeLnet/minecraft/world/rule/ServerGameRules;size()Iintermediary method_76175Lnet/minecraft/class_12280;method_76175()Iofficial cLesp;c()I
-
toString
-
withOverride
- Mappings:
Namespace Name Mixin selector named withOverrideLnet/minecraft/world/rule/ServerGameRules;withOverride(Lnet/minecraft/world/rule/ServerGameRules;)Lnet/minecraft/world/rule/ServerGameRules;intermediary method_76174Lnet/minecraft/class_12280;method_76174(Lnet/minecraft/class_12280;)Lnet/minecraft/class_12280;official bLesp;b(Lesp;)Lesp;
-
copyFrom
- Mappings:
Namespace Name Mixin selector named copyFromLnet/minecraft/world/rule/ServerGameRules;copyFrom(Lnet/minecraft/world/rule/ServerGameRules;Ljava/util/function/Predicate;)Vintermediary method_76168Lnet/minecraft/class_12280;method_76168(Lnet/minecraft/class_12280;Ljava/util/function/Predicate;)Vofficial aLesp;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 setFromLnet/minecraft/world/rule/ServerGameRules;setFrom(Lnet/minecraft/world/rule/ServerGameRules;Lnet/minecraft/world/rule/GameRule;Lnet/minecraft/world/rule/ServerGameRules;)Vintermediary method_76167Lnet/minecraft/class_12280;method_76167(Lnet/minecraft/class_12280;Lnet/minecraft/class_12279;Lnet/minecraft/class_12280;)Vofficial aLesp;a(Lesp;Lesn;Lesp;)V
-
getRuleValues
- Mappings:
Namespace Name Mixin selector named getRuleValuesLnet/minecraft/world/rule/ServerGameRules;getRuleValues()Lit/unimi/dsi/fastutil/objects/Reference2ObjectMap;intermediary method_76177Lnet/minecraft/class_12280;method_76177()Lit/unimi/dsi/fastutil/objects/Reference2ObjectMap;official dLesp;d()Lit/unimi/dsi/fastutil/objects/Reference2ObjectMap;
-
equals
-
hashCode
public int hashCode()
-