Package net.minecraft.world.rule
Class GameRule<T>
java.lang.Object
net.minecraft.world.rule.GameRule<T>
- Mappings:
Namespace Name named net/minecraft/world/rule/GameRuleintermediary net/minecraft/class_12279official esi
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final GameRules.Acceptor<T> private final com.mojang.brigadier.arguments.ArgumentType<T> private final Categoryprivate final com.mojang.serialization.Codec<T> private final ToIntFunction<T> private final Tprivate final FeatureSetprivate final GameRuleType -
Constructor Summary
ConstructorsConstructorDescriptionGameRule(Category category, GameRuleType type, com.mojang.brigadier.arguments.ArgumentType<T> argumentType, GameRules.Acceptor<T> acceptor, com.mojang.serialization.Codec<T> codec, ToIntFunction<T> commandResultSupplier, T defaultValue, FeatureSet featureSet) -
Method Summary
Modifier and TypeMethodDescriptionvoidcom.mojang.serialization.DataResult<T> deserialize(String value) com.mojang.brigadier.arguments.ArgumentType<T> com.mojang.serialization.Codec<T> getCodec()intgetCommandResult(T value) getId()getType()getValueName(T value) toString()
-
Field Details
-
category
- Mappings:
Namespace Name Mixin selector named categoryLnet/minecraft/world/rule/GameRule;category:Lnet/minecraft/world/Category;intermediary field_64167Lnet/minecraft/class_12279;field_64167:Lnet/minecraft/class_5198;official aLesi;a:Lesj;
-
type
- Mappings:
Namespace Name Mixin selector named typeLnet/minecraft/world/rule/GameRule;type:Lnet/minecraft/server/dedicated/management/dispatch/GameRuleType;intermediary field_64168Lnet/minecraft/class_12279;field_64168:Lnet/minecraft/class_11845;official bLesi;b:Lesl;
-
argumentType
- Mappings:
Namespace Name Mixin selector named argumentTypeLnet/minecraft/world/rule/GameRule;argumentType:Lcom/mojang/brigadier/arguments/ArgumentType;intermediary field_64169Lnet/minecraft/class_12279;field_64169:Lcom/mojang/brigadier/arguments/ArgumentType;official cLesi;c:Lcom/mojang/brigadier/arguments/ArgumentType;
-
acceptor
- Mappings:
Namespace Name Mixin selector named acceptorLnet/minecraft/world/rule/GameRule;acceptor:Lnet/minecraft/world/rule/GameRules$Acceptor;intermediary field_64170Lnet/minecraft/class_12279;field_64170:Lnet/minecraft/class_1928$class_5199;official dLesi;d:Lesn$a;
-
codec
- Mappings:
Namespace Name Mixin selector named codecLnet/minecraft/world/rule/GameRule;codec:Lcom/mojang/serialization/Codec;intermediary field_64171Lnet/minecraft/class_12279;field_64171:Lcom/mojang/serialization/Codec;official eLesi;e:Lcom/mojang/serialization/Codec;
-
commandResultSupplier
- Mappings:
Namespace Name Mixin selector named commandResultSupplierLnet/minecraft/world/rule/GameRule;commandResultSupplier:Ljava/util/function/ToIntFunction;intermediary field_64172Lnet/minecraft/class_12279;field_64172:Ljava/util/function/ToIntFunction;official fLesi;f:Ljava/util/function/ToIntFunction;
-
defaultValue
- Mappings:
Namespace Name Mixin selector named defaultValueLnet/minecraft/world/rule/GameRule;defaultValue:Ljava/lang/Object;intermediary field_64173Lnet/minecraft/class_12279;field_64173:Ljava/lang/Object;official gLesi;g:Ljava/lang/Object;
-
featureSet
- Mappings:
Namespace Name Mixin selector named featureSetLnet/minecraft/world/rule/GameRule;featureSet:Lnet/minecraft/resource/featuretoggle/FeatureSet;intermediary field_64174Lnet/minecraft/class_12279;field_64174:Lnet/minecraft/class_7699;official hLesi;h:Ldfo;
-
-
Constructor Details
-
GameRule
public GameRule(Category category, GameRuleType type, com.mojang.brigadier.arguments.ArgumentType<T> argumentType, GameRules.Acceptor<T> acceptor, com.mojang.serialization.Codec<T> codec, ToIntFunction<T> commandResultSupplier, T defaultValue, FeatureSet featureSet) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/world/rule/GameRule;<init>(Lnet/minecraft/world/Category;Lnet/minecraft/server/dedicated/management/dispatch/GameRuleType;Lcom/mojang/brigadier/arguments/ArgumentType;Lnet/minecraft/world/rule/GameRules$Acceptor;Lcom/mojang/serialization/Codec;Ljava/util/function/ToIntFunction;Ljava/lang/Object;Lnet/minecraft/resource/featuretoggle/FeatureSet;)Vintermediary <init>Lnet/minecraft/class_12279;<init>(Lnet/minecraft/class_5198;Lnet/minecraft/class_11845;Lcom/mojang/brigadier/arguments/ArgumentType;Lnet/minecraft/class_1928$class_5199;Lcom/mojang/serialization/Codec;Ljava/util/function/ToIntFunction;Ljava/lang/Object;Lnet/minecraft/class_7699;)Vofficial <init>Lesi;<init>(Lesj;Lesl;Lcom/mojang/brigadier/arguments/ArgumentType;Lesn$a;Lcom/mojang/serialization/Codec;Ljava/util/function/ToIntFunction;Ljava/lang/Object;Ldfo;)V
-
-
Method Details
-
toString
-
getSimplifiedPath
- Mappings:
Namespace Name Mixin selector named getSimplifiedPathLnet/minecraft/world/rule/GameRule;getSimplifiedPath()Ljava/lang/String;intermediary method_76144Lnet/minecraft/class_12279;method_76144()Ljava/lang/String;official aLesi;a()Ljava/lang/String;
-
getId
- Mappings:
Namespace Name Mixin selector named getIdLnet/minecraft/world/rule/GameRule;getId()Lnet/minecraft/util/Identifier;intermediary method_76148Lnet/minecraft/class_12279;method_76148()Lnet/minecraft/class_2960;official bLesi;b()Lamu;
-
getTranslationKey
- Mappings:
Namespace Name Mixin selector named getTranslationKeyLnet/minecraft/world/rule/GameRule;getTranslationKey()Ljava/lang/String;intermediary method_76150Lnet/minecraft/class_12279;method_76150()Ljava/lang/String;official cLesi;c()Ljava/lang/String;
-
getValueName
- Mappings:
Namespace Name Mixin selector named getValueNameLnet/minecraft/world/rule/GameRule;getValueName(Ljava/lang/Object;)Ljava/lang/String;intermediary method_76146Lnet/minecraft/class_12279;method_76146(Ljava/lang/Object;)Ljava/lang/String;official aLesi;a(Ljava/lang/Object;)Ljava/lang/String;
-
deserialize
- Mappings:
Namespace Name Mixin selector named deserializeLnet/minecraft/world/rule/GameRule;deserialize(Ljava/lang/String;)Lcom/mojang/serialization/DataResult;intermediary method_76147Lnet/minecraft/class_12279;method_76147(Ljava/lang/String;)Lcom/mojang/serialization/DataResult;official aLesi;a(Ljava/lang/String;)Lcom/mojang/serialization/DataResult;
-
getValueClass
- Mappings:
Namespace Name Mixin selector named getValueClassLnet/minecraft/world/rule/GameRule;getValueClass()Ljava/lang/Class;intermediary method_76151Lnet/minecraft/class_12279;method_76151()Ljava/lang/Class;official dLesi;d()Ljava/lang/Class;
-
accept
- Mappings:
Namespace Name Mixin selector named acceptLnet/minecraft/world/rule/GameRule;accept(Lnet/minecraft/world/Visitor;)Vintermediary method_76145Lnet/minecraft/class_12279;method_76145(Lnet/minecraft/class_4311;)Vofficial aLesi;a(Lesm;)V
-
getCommandResult
- Mappings:
Namespace Name Mixin selector named getCommandResultLnet/minecraft/world/rule/GameRule;getCommandResult(Ljava/lang/Object;)Iintermediary method_76149Lnet/minecraft/class_12279;method_76149(Ljava/lang/Object;)Iofficial bLesi;b(Ljava/lang/Object;)I
-
getCategory
- Mappings:
Namespace Name Mixin selector named getCategoryLnet/minecraft/world/rule/GameRule;getCategory()Lnet/minecraft/world/Category;intermediary method_76152Lnet/minecraft/class_12279;method_76152()Lnet/minecraft/class_5198;official eLesi;e()Lesj;
-
getType
- Mappings:
Namespace Name Mixin selector named getTypeLnet/minecraft/world/rule/GameRule;getType()Lnet/minecraft/server/dedicated/management/dispatch/GameRuleType;intermediary method_76153Lnet/minecraft/class_12279;method_76153()Lnet/minecraft/class_11845;official fLesi;f()Lesl;
-
getArgumentType
- Mappings:
Namespace Name Mixin selector named getArgumentTypeLnet/minecraft/world/rule/GameRule;getArgumentType()Lcom/mojang/brigadier/arguments/ArgumentType;intermediary method_76154Lnet/minecraft/class_12279;method_76154()Lcom/mojang/brigadier/arguments/ArgumentType;official gLesi;g()Lcom/mojang/brigadier/arguments/ArgumentType;
-
getCodec
- Mappings:
Namespace Name Mixin selector named getCodecLnet/minecraft/world/rule/GameRule;getCodec()Lcom/mojang/serialization/Codec;intermediary method_76155Lnet/minecraft/class_12279;method_76155()Lcom/mojang/serialization/Codec;official hLesi;h()Lcom/mojang/serialization/Codec;
-
getDefaultValue
- Mappings:
Namespace Name Mixin selector named getDefaultValueLnet/minecraft/world/rule/GameRule;getDefaultValue()Ljava/lang/Object;intermediary method_76156Lnet/minecraft/class_12279;method_76156()Ljava/lang/Object;official iLesi;i()Ljava/lang/Object;
-
getFeatureSet
- Mappings:
Namespace Name Mixin selector named getFeatureSetLnet/minecraft/world/rule/GameRule;getFeatureSet()Lnet/minecraft/resource/featuretoggle/FeatureSet;intermediary method_76157Lnet/minecraft/class_12279;method_76157()Lnet/minecraft/class_7699;official jLesi;j()Ldfo;
-