public final class DoubleRule extends net.minecraft.world.GameRules.Rule<DoubleRule> implements ValidateableRule
Constructor and Description |
---|
DoubleRule(net.minecraft.world.GameRules.Type<DoubleRule> type,
double value,
double minimumValue,
double maximumValue)
Deprecated.
You should not be calling this constructor!
|
Modifier and Type | Method and Description |
---|---|
protected DoubleRule |
copy() |
protected void |
deserialize(String value) |
double |
get() |
int |
getCommandResult() |
protected DoubleRule |
getThis() |
String |
serialize() |
protected void |
setFromArgument(com.mojang.brigadier.context.CommandContext<net.minecraft.server.command.ServerCommandSource> context,
String name) |
void |
setValue(DoubleRule rule,
net.minecraft.server.MinecraftServer minecraftServer) |
boolean |
validate(String value)
Validates if a rule can accept the input.
|
@Deprecated public DoubleRule(net.minecraft.world.GameRules.Type<DoubleRule> type, double value, double minimumValue, double maximumValue)
protected void setFromArgument(com.mojang.brigadier.context.CommandContext<net.minecraft.server.command.ServerCommandSource> context, String name)
setFromArgument
in class net.minecraft.world.GameRules.Rule<DoubleRule>
protected void deserialize(String value)
deserialize
in class net.minecraft.world.GameRules.Rule<DoubleRule>
public String serialize()
serialize
in class net.minecraft.world.GameRules.Rule<DoubleRule>
public int getCommandResult()
getCommandResult
in class net.minecraft.world.GameRules.Rule<DoubleRule>
protected DoubleRule getThis()
getThis
in class net.minecraft.world.GameRules.Rule<DoubleRule>
protected DoubleRule copy()
copy
in class net.minecraft.world.GameRules.Rule<DoubleRule>
public void setValue(DoubleRule rule, net.minecraft.server.MinecraftServer minecraftServer)
setValue
in class net.minecraft.world.GameRules.Rule<DoubleRule>
public boolean validate(String value)
ValidateableRule
validate
in interface ValidateableRule
value
- the value to validatepublic double get()