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 esk
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<ServerGameRules> private final Reference2ObjectMap<GameRule<?>, Object> -
Constructor Summary
ConstructorsConstructorDescriptionServerGameRules(Reference2ObjectMap<GameRule<?>, Object> reference2ObjectMap) -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic ServerGameRulescopyFrom(ServerGameRules rules) private static <T> voidcopyValue(ServerGameRules oldRules, GameRule<T> rule, ServerGameRules newRules) voidcopyValuesIf(ServerGameRules rules, Predicate<GameRule<?>> predicate) static ServerGameRulescreate()private static ServerGameRulesstatic ServerGameRulesbooleangetRules()private Reference2ObjectMap<GameRule<?>, Object> intgetSize()<T> @Nullable TinthashCode()merge(ServerGameRules override) <T> void<T> @Nullable TtoString()
-
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 aLesk;a:Lcom/mojang/serialization/Codec;
-
ruleValueMap
- Mappings:
Namespace Name Mixin selector named ruleValueMapLnet/minecraft/world/rule/ServerGameRules;ruleValueMap:Lit/unimi/dsi/fastutil/objects/Reference2ObjectMap;intermediary field_64177Lnet/minecraft/class_12280;field_64177:Lit/unimi/dsi/fastutil/objects/Reference2ObjectMap;official bLesk;b:Lit/unimi/dsi/fastutil/objects/Reference2ObjectMap;
-
-
Constructor Details
-
ServerGameRules
ServerGameRules(Reference2ObjectMap<GameRule<?>, Object> reference2ObjectMap)
-
-
Method Details
-
create
- Mappings:
Namespace Name Mixin selector named createLnet/minecraft/world/rule/ServerGameRules;create(Ljava/util/Map;)Lnet/minecraft/world/rule/ServerGameRules;intermediary method_76170Lnet/minecraft/class_12280;method_76170(Ljava/util/Map;)Lnet/minecraft/class_12280;official aLesk;a(Ljava/util/Map;)Lesk;
-
create
- Mappings:
Namespace Name Mixin selector named createLnet/minecraft/world/rule/ServerGameRules;create()Lnet/minecraft/world/rule/ServerGameRules;intermediary method_76163Lnet/minecraft/class_12280;method_76163()Lnet/minecraft/class_12280;official aLesk;a()Lesk;
-
create
- Mappings:
Namespace Name Mixin selector named createLnet/minecraft/world/rule/ServerGameRules;create(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 aLesk;a(Ljava/util/stream/Stream;)Lesk;
-
copyFrom
- Mappings:
Namespace Name Mixin selector named copyFromLnet/minecraft/world/rule/ServerGameRules;copyFrom(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 aLesk;a(Lesk;)Lesk;
-
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 aLesk;a(Lesi;)Z
-
getValue
- Mappings:
Namespace Name Mixin selector named getValueLnet/minecraft/world/rule/ServerGameRules;getValue(Lnet/minecraft/world/rule/GameRule;)Ljava/lang/Object;intermediary method_76173Lnet/minecraft/class_12280;method_76173(Lnet/minecraft/class_12279;)Ljava/lang/Object;official bLesk;b(Lesi;)Ljava/lang/Object;
-
putValue
- Mappings:
Namespace Name Mixin selector named putValueLnet/minecraft/world/rule/ServerGameRules;putValue(Lnet/minecraft/world/rule/GameRule;Ljava/lang/Object;)Vintermediary method_76165Lnet/minecraft/class_12280;method_76165(Lnet/minecraft/class_12279;Ljava/lang/Object;)Vofficial aLesk;a(Lesi;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 cLesk;c(Lesi;)Ljava/lang/Object;
-
getRules
- Mappings:
Namespace Name Mixin selector named getRulesLnet/minecraft/world/rule/ServerGameRules;getRules()Ljava/util/Set;intermediary method_76172Lnet/minecraft/class_12280;method_76172()Ljava/util/Set;official bLesk;b()Ljava/util/Set;
-
getSize
public int getSize()- Mappings:
Namespace Name Mixin selector named getSizeLnet/minecraft/world/rule/ServerGameRules;getSize()Iintermediary method_76175Lnet/minecraft/class_12280;method_76175()Iofficial cLesk;c()I
-
toString
-
merge
- Mappings:
Namespace Name Mixin selector named mergeLnet/minecraft/world/rule/ServerGameRules;merge(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 bLesk;b(Lesk;)Lesk;
-
copyValuesIf
- Mappings:
Namespace Name Mixin selector named copyValuesIfLnet/minecraft/world/rule/ServerGameRules;copyValuesIf(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 aLesk;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 copyValueLnet/minecraft/world/rule/ServerGameRules;copyValue(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 aLesk;a(Lesk;Lesi;Lesk;)V
-
getRuleValueMap
- Mappings:
Namespace Name Mixin selector named getRuleValueMapLnet/minecraft/world/rule/ServerGameRules;getRuleValueMap()Lit/unimi/dsi/fastutil/objects/Reference2ObjectMap;intermediary method_76177Lnet/minecraft/class_12280;method_76177()Lit/unimi/dsi/fastutil/objects/Reference2ObjectMap;official dLesk;d()Lit/unimi/dsi/fastutil/objects/Reference2ObjectMap;
-
equals
-
hashCode
public int hashCode()
-