Class GameRules.Type<T extends GameRules.Rule<T>>

java.lang.Object
net.minecraft.world.GameRules.Type<T>
Enclosing class:
GameRules

public static class GameRules.Type<T extends GameRules.Rule<T>> extends Object
Mappings:
Namespace Name
named net/minecraft/world/GameRules$Type
intermediary net/minecraft/class_1928$class_4314
official dhd$f
  • Field Details

    • argumentType

      final Supplier<com.mojang.brigadier.arguments.ArgumentType<?>> argumentType
      Mappings:
      Namespace Name Mixin selector
      named argumentType Lnet/minecraft/world/GameRules$Type;argumentType:Ljava/util/function/Supplier;
      intermediary field_19414 Lnet/minecraft/class_1928$class_4314;field_19414:Ljava/util/function/Supplier;
      official a Ldhd$f;a:Ljava/util/function/Supplier;
    • ruleFactory

      private final Function<GameRules.Type<T extends GameRules.Rule<T>>,T extends GameRules.Rule<T>> ruleFactory
      Mappings:
      Namespace Name Mixin selector
      named ruleFactory Lnet/minecraft/world/GameRules$Type;ruleFactory:Ljava/util/function/Function;
      intermediary field_19415 Lnet/minecraft/class_1928$class_4314;field_19415:Ljava/util/function/Function;
      official b Ldhd$f;b:Ljava/util/function/Function;
    • changeCallback

      final BiConsumer<MinecraftServer,T extends GameRules.Rule<T>> changeCallback
      Mappings:
      Namespace Name Mixin selector
      named changeCallback Lnet/minecraft/world/GameRules$Type;changeCallback:Ljava/util/function/BiConsumer;
      intermediary field_19416 Lnet/minecraft/class_1928$class_4314;field_19416:Ljava/util/function/BiConsumer;
      official c Ldhd$f;c:Ljava/util/function/BiConsumer;
    • ruleAcceptor

      private final GameRules.Acceptor<T extends GameRules.Rule<T>> ruleAcceptor
      Mappings:
      Namespace Name Mixin selector
      named ruleAcceptor Lnet/minecraft/world/GameRules$Type;ruleAcceptor:Lnet/minecraft/world/GameRules$Acceptor;
      intermediary field_24104 Lnet/minecraft/class_1928$class_4314;field_24104:Lnet/minecraft/class_1928$class_5199;
      official d Ldhd$f;d:Ldhd$h;
    • requiredFeatures

      final FeatureSet requiredFeatures
      Mappings:
      Namespace Name Mixin selector
      named requiredFeatures Lnet/minecraft/world/GameRules$Type;requiredFeatures:Lnet/minecraft/resource/featuretoggle/FeatureSet;
      intermediary field_52616 Lnet/minecraft/class_1928$class_4314;field_52616:Lnet/minecraft/class_7699;
      official e Ldhd$f;e:Lcss;
  • Constructor Details

    • Type

      Type(Supplier<com.mojang.brigadier.arguments.ArgumentType<?>> argumentType, Function<GameRules.Type<T>,T> ruleFactory, BiConsumer<MinecraftServer,T> changeCallback, GameRules.Acceptor<T> ruleAcceptor, FeatureSet requiredFeatures)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/world/GameRules$Type;<init>(Ljava/util/function/Supplier;Ljava/util/function/Function;Ljava/util/function/BiConsumer;Lnet/minecraft/world/GameRules$Acceptor;Lnet/minecraft/resource/featuretoggle/FeatureSet;)V
      intermediary <init> Lnet/minecraft/class_1928$class_4314;<init>(Ljava/util/function/Supplier;Ljava/util/function/Function;Ljava/util/function/BiConsumer;Lnet/minecraft/class_1928$class_5199;Lnet/minecraft/class_7699;)V
      official <init> Ldhd$f;<init>(Ljava/util/function/Supplier;Ljava/util/function/Function;Ljava/util/function/BiConsumer;Ldhd$h;Lcss;)V
  • Method Details

    • argument

      public com.mojang.brigadier.builder.RequiredArgumentBuilder<ServerCommandSource,?> argument(String name)
      Mappings:
      Namespace Name Mixin selector
      named argument Lnet/minecraft/world/GameRules$Type;argument(Ljava/lang/String;)Lcom/mojang/brigadier/builder/RequiredArgumentBuilder;
      intermediary method_20775 Lnet/minecraft/class_1928$class_4314;method_20775(Ljava/lang/String;)Lcom/mojang/brigadier/builder/RequiredArgumentBuilder;
      official a Ldhd$f;a(Ljava/lang/String;)Lcom/mojang/brigadier/builder/RequiredArgumentBuilder;
    • createRule

      public T createRule()
      Mappings:
      Namespace Name Mixin selector
      named createRule Lnet/minecraft/world/GameRules$Type;createRule()Lnet/minecraft/world/GameRules$Rule;
      intermediary method_20773 Lnet/minecraft/class_1928$class_4314;method_20773()Lnet/minecraft/class_1928$class_4315;
      official a Ldhd$f;a()Ldhd$g;
    • accept

      public void accept(GameRules.Visitor consumer, GameRules.Key<T> key)
      Mappings:
      Namespace Name Mixin selector
      named accept Lnet/minecraft/world/GameRules$Type;accept(Lnet/minecraft/world/GameRules$Visitor;Lnet/minecraft/world/GameRules$Key;)V
      intermediary method_27336 Lnet/minecraft/class_1928$class_4314;method_27336(Lnet/minecraft/class_1928$class_4311;Lnet/minecraft/class_1928$class_4313;)V
      official a Ldhd$f;a(Ldhd$c;Ldhd$e;)V
    • getRequiredFeatures

      public FeatureSet getRequiredFeatures()
      Mappings:
      Namespace Name Mixin selector
      named getRequiredFeatures Lnet/minecraft/world/GameRules$Type;getRequiredFeatures()Lnet/minecraft/resource/featuretoggle/FeatureSet;
      intermediary method_61728 Lnet/minecraft/class_1928$class_4314;method_61728()Lnet/minecraft/class_7699;
      official b Ldhd$f;b()Lcss;