Package net.minecraft.world
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 official btr$f
intermediary net/minecraft/class_1928$class_4314
named net/minecraft/world/GameRules$Type
-
Field Summary
Fields Modifier and Type Field Description private Supplier<com.mojang.brigadier.arguments.ArgumentType<?>>
argumentType
private BiConsumer<MinecraftServer,T>
changeCallback
private GameRules.Acceptor<T>
ruleAcceptor
private Function<GameRules.Type<T>,T>
ruleFactory
-
Constructor Summary
Constructors Modifier Constructor Description private
Type(Supplier<com.mojang.brigadier.arguments.ArgumentType<?>> argumentType, Function<GameRules.Type<T>,T> ruleFactory, BiConsumer<MinecraftServer,T> changeCallback, GameRules.Acceptor<T> ruleAcceptor)
-
Method Summary
Modifier and Type Method Description void
accept(GameRules.Visitor consumer, GameRules.Key<T> key)
com.mojang.brigadier.builder.RequiredArgumentBuilder<ServerCommandSource,?>
argument(String name)
T
createRule()
-
Field Details
-
argumentType
- Mappings:
Namespace Name Mixin selector official a
Lbtr$f;a:Ljava/util/function/Supplier;
intermediary field_19414
Lnet/minecraft/class_1928$class_4314;field_19414:Ljava/util/function/Supplier;
named argumentType
Lnet/minecraft/world/GameRules$Type;argumentType: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 official b
Lbtr$f;b:Ljava/util/function/Function;
intermediary field_19415
Lnet/minecraft/class_1928$class_4314;field_19415:Ljava/util/function/Function;
named ruleFactory
Lnet/minecraft/world/GameRules$Type;ruleFactory:Ljava/util/function/Function;
-
changeCallback
- Mappings:
Namespace Name Mixin selector official c
Lbtr$f;c:Ljava/util/function/BiConsumer;
intermediary field_19416
Lnet/minecraft/class_1928$class_4314;field_19416:Ljava/util/function/BiConsumer;
named changeCallback
Lnet/minecraft/world/GameRules$Type;changeCallback:Ljava/util/function/BiConsumer;
-
ruleAcceptor
- Mappings:
Namespace Name Mixin selector official d
Lbtr$f;d:Lbtr$h;
intermediary field_24104
Lnet/minecraft/class_1928$class_4314;field_24104:Lnet/minecraft/class_1928$class_5199;
named ruleAcceptor
Lnet/minecraft/world/GameRules$Type;ruleAcceptor:Lnet/minecraft/world/GameRules$Acceptor;
-
-
Constructor Details
-
Type
private Type(Supplier<com.mojang.brigadier.arguments.ArgumentType<?>> argumentType, Function<GameRules.Type<T>,T> ruleFactory, BiConsumer<MinecraftServer,T> changeCallback, GameRules.Acceptor<T> ruleAcceptor)- Mappings:
Namespace Name Mixin selector official <init>
Lbtr$f;<init>(Ljava/util/function/Supplier;Ljava/util/function/Function;Ljava/util/function/BiConsumer;Lbtr$h;)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;)V
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;)V
-
-
Method Details
-
argument
public com.mojang.brigadier.builder.RequiredArgumentBuilder<ServerCommandSource,?> argument(String name)- Mappings:
Namespace Name Mixin selector official a
Lbtr$f;a(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;
named argument
Lnet/minecraft/world/GameRules$Type;argument(Ljava/lang/String;)Lcom/mojang/brigadier/builder/RequiredArgumentBuilder;
-
createRule
- Mappings:
Namespace Name Mixin selector official a
Lbtr$f;a()Lbtr$g;
intermediary method_20773
Lnet/minecraft/class_1928$class_4314;method_20773()Lnet/minecraft/class_1928$class_4315;
named createRule
Lnet/minecraft/world/GameRules$Type;createRule()Lnet/minecraft/world/GameRules$Rule;
-
accept
- Mappings:
Namespace Name Mixin selector official a
Lbtr$f;a(Lbtr$c;Lbtr$e;)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
named accept
Lnet/minecraft/world/GameRules$Type;accept(Lnet/minecraft/world/GameRules$Visitor;Lnet/minecraft/world/GameRules$Key;)V
-