Package net.minecraft.world
Class GameRules.Rule<T extends GameRules.Rule<T>>
java.lang.Object
net.minecraft.world.GameRules.Rule<T>
- Direct Known Subclasses:
GameRules.BooleanRule,GameRules.IntRule
- Enclosing class:
- GameRules
public abstract static class GameRules.Rule<T extends GameRules.Rule<T>> extends Object
-
Field Summary
Fields Modifier and Type Field Description protected GameRules.Type<T>type -
Constructor Summary
Constructors Constructor Description Rule(GameRules.Type<T> type) -
Method Summary
Modifier and Type Method Description protected voidchanged(MinecraftServer server)protected abstract Tcopy()protected abstract voiddeserialize(String value)abstract intgetCommandResult()protected abstract TgetThis()abstract Stringserialize()voidset(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)protected abstract voidsetFromArgument(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)abstract voidsetValue(T rule, MinecraftServer server)StringtoString()
-
Field Details
-
type
-
-
Constructor Details
-
Rule
-
-
Method Details
-
setFromArgument
protected abstract void setFromArgument(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) -
set
public void set(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) -
changed
-
deserialize
-
serialize
-
toString
-
getCommandResult
public abstract int getCommandResult() -
getThis
-
copy
-
setValue
-