Class MinMaxBounds<T extends Number>
java.lang.Object
net.minecraft.advancements.criterion.MinMaxBounds<T>
- Direct Known Subclasses:
MinMaxBounds.FloatBound
,MinMaxBounds.IntBound
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static interface
MinMaxBounds.IBoundFactory<T extends Number,
R extends MinMaxBounds<T>> static interface
MinMaxBounds.IBoundReader<T extends Number,
R extends MinMaxBounds<T>> static class
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected static <T extends Number,
R extends MinMaxBounds<T>>
RfromJson
(com.google.gson.JsonElement p_211331_0_, R p_211331_1_, BiFunction<com.google.gson.JsonElement, String, T> p_211331_2_, MinMaxBounds.IBoundFactory<T, R> p_211331_3_) protected static <T extends Number,
R extends MinMaxBounds<T>>
RfromReader
(com.mojang.brigadier.StringReader p_211337_0_, MinMaxBounds.IBoundReader<T, R> p_211337_1_, Function<String, T> p_211337_2_, Supplier<com.mojang.brigadier.exceptions.DynamicCommandExceptionType> p_211337_3_, Function<T, T> p_211337_4_) getMax()
getMin()
private static boolean
isAllowedInputChat
(com.mojang.brigadier.StringReader p_196970_0_) boolean
isAny()
private static <T> T
optionallyFormat
(T p_196972_0_, Function<T, T> p_196972_1_) private static <T extends Number>
TreadNumber
(com.mojang.brigadier.StringReader p_196975_0_, Function<String, T> p_196975_1_, Supplier<com.mojang.brigadier.exceptions.DynamicCommandExceptionType> p_196975_2_) com.google.gson.JsonElement
-
Field Details
-
ERROR_EMPTY
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_EMPTY -
ERROR_SWAPPED
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_SWAPPED -
min
-
max
-
-
Constructor Details
-
MinMaxBounds
-
-
Method Details
-
getMin
-
getMax
-
isAny
public boolean isAny() -
serializeToJson
public com.google.gson.JsonElement serializeToJson() -
fromJson
protected static <T extends Number,R extends MinMaxBounds<T>> R fromJson(@Nullable com.google.gson.JsonElement p_211331_0_, R p_211331_1_, BiFunction<com.google.gson.JsonElement, String, T> p_211331_2_, MinMaxBounds.IBoundFactory<T, R> p_211331_3_) -
fromReader
protected static <T extends Number,R extends MinMaxBounds<T>> R fromReader(com.mojang.brigadier.StringReader p_211337_0_, MinMaxBounds.IBoundReader<T, R> p_211337_1_, Function<String, throws com.mojang.brigadier.exceptions.CommandSyntaxExceptionT> p_211337_2_, Supplier<com.mojang.brigadier.exceptions.DynamicCommandExceptionType> p_211337_3_, Function<T, T> p_211337_4_) - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
readNumber
@Nullable private static <T extends Number> T readNumber(com.mojang.brigadier.StringReader p_196975_0_, Function<String, T> p_196975_1_, Supplier<com.mojang.brigadier.exceptions.DynamicCommandExceptionType> p_196975_2_) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
isAllowedInputChat
private static boolean isAllowedInputChat(com.mojang.brigadier.StringReader p_196970_0_) -
optionallyFormat
-