类 NumberRange<T extends Number>
- java.lang.Object
-
- net.minecraft.predicate.NumberRange<T>
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static interfaceNumberRange.CommandFactory<T extends Number,R extends NumberRange<T>>static interfaceNumberRange.Factory<T extends Number,R extends NumberRange<T>>static classNumberRange.FloatRangestatic classNumberRange.IntRange
-
字段概要
字段 修饰符和类型 字段 说明 static com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeEXCEPTION_EMPTYstatic com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeEXCEPTION_SWAPPEDprotected Tmaxprotected Tmin
-
构造器概要
构造器 限定符 构造器 说明 protectedNumberRange(T min, T max)
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 protected static <T extends Number,R extends NumberRange<T>>
RfromJson(@Nullable JsonElement json, R fallback, BiFunction<JsonElement,String,T> asNumber, NumberRange.Factory<T,R> factory)private static <T extends Number>
TfromStringReader(com.mojang.brigadier.StringReader reader, Function<String,T> converter, Supplier<com.mojang.brigadier.exceptions.DynamicCommandExceptionType> exceptionTypeSupplier)TgetMax()TgetMin()booleanisDummy()private static booleanisNextCharValid(com.mojang.brigadier.StringReader reader)private static <T> Tmap(T object, Function<T,T> function)protected static <T extends Number,R extends NumberRange<T>>
Rparse(com.mojang.brigadier.StringReader commandReader, NumberRange.CommandFactory<T,R> commandFactory, Function<String,T> converter, Supplier<com.mojang.brigadier.exceptions.DynamicCommandExceptionType> exceptionTypeSupplier, Function<T,T> mapper)JsonElementtoJson()
-
-
-
字段详细资料
-
EXCEPTION_EMPTY
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType EXCEPTION_EMPTY
- Mappings:
Namespace Name Mixin selector official aLce;a:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;intermediary field_9700Lnet/minecraft/class_2096;field_9700:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;named EXCEPTION_EMPTYLnet/minecraft/predicate/NumberRange;EXCEPTION_EMPTY:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
-
EXCEPTION_SWAPPED
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType EXCEPTION_SWAPPED
- Mappings:
Namespace Name Mixin selector official bLce;b:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;intermediary field_9701Lnet/minecraft/class_2096;field_9701:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;named EXCEPTION_SWAPPEDLnet/minecraft/predicate/NumberRange;EXCEPTION_SWAPPED:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
-
min
protected final T extends Number min
- Mappings:
Namespace Name Mixin selector official cLce;c:Ljava/lang/Number;intermediary field_9702Lnet/minecraft/class_2096;field_9702:Ljava/lang/Number;named minLnet/minecraft/predicate/NumberRange;min:Ljava/lang/Number;
-
-
构造器详细资料
-
NumberRange
protected NumberRange(@Nullable T min, @Nullable T max)
- Mappings:
Namespace Name Mixin selector official <init>Lce;<init>(Ljava/lang/Number;Ljava/lang/Number;)Vintermediary <init>Lnet/minecraft/class_2096;<init>(Ljava/lang/Number;Ljava/lang/Number;)Vnamed <init>Lnet/minecraft/predicate/NumberRange;<init>(Ljava/lang/Number;Ljava/lang/Number;)V
-
-
方法详细资料
-
getMin
@Nullable public T getMin()
- Mappings:
Namespace Name Mixin selector official aLce;a()Ljava/lang/Number;intermediary method_9038Lnet/minecraft/class_2096;method_9038()Ljava/lang/Number;named getMinLnet/minecraft/predicate/NumberRange;getMin()Ljava/lang/Number;
-
getMax
@Nullable public T getMax()
- Mappings:
Namespace Name Mixin selector official bLce;b()Ljava/lang/Number;intermediary method_9042Lnet/minecraft/class_2096;method_9042()Ljava/lang/Number;named getMaxLnet/minecraft/predicate/NumberRange;getMax()Ljava/lang/Number;
-
isDummy
public boolean isDummy()
- Mappings:
Namespace Name Mixin selector official cLce;c()Zintermediary method_9041Lnet/minecraft/class_2096;method_9041()Znamed isDummyLnet/minecraft/predicate/NumberRange;isDummy()Z
-
toJson
public JsonElement toJson()
- Mappings:
Namespace Name Mixin selector official dLce;d()Lcom/google/gson/JsonElement;intermediary method_9036Lnet/minecraft/class_2096;method_9036()Lcom/google/gson/JsonElement;named toJsonLnet/minecraft/predicate/NumberRange;toJson()Lcom/google/gson/JsonElement;
-
fromJson
protected static <T extends Number,R extends NumberRange<T>> R fromJson(@Nullable @Nullable JsonElement json, R fallback, BiFunction<JsonElement,String,T> asNumber, NumberRange.Factory<T,R> factory)
- Mappings:
Namespace Name Mixin selector official aLce;a(Lcom/google/gson/JsonElement;Lce;Ljava/util/function/BiFunction;Lce$a;)Lce;intermediary method_9039Lnet/minecraft/class_2096;method_9039(Lcom/google/gson/JsonElement;Lnet/minecraft/class_2096;Ljava/util/function/BiFunction;Lnet/minecraft/class_2096$class_2097;)Lnet/minecraft/class_2096;named fromJsonLnet/minecraft/predicate/NumberRange;fromJson(Lcom/google/gson/JsonElement;Lnet/minecraft/predicate/NumberRange;Ljava/util/function/BiFunction;Lnet/minecraft/predicate/NumberRange$Factory;)Lnet/minecraft/predicate/NumberRange;
-
parse
protected static <T extends Number,R extends NumberRange<T>> R parse(com.mojang.brigadier.StringReader commandReader, NumberRange.CommandFactory<T,R> commandFactory, Function<String,T> converter, Supplier<com.mojang.brigadier.exceptions.DynamicCommandExceptionType> exceptionTypeSupplier, Function<T,T> mapper) throws com.mojang.brigadier.exceptions.CommandSyntaxException
- 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector official aLce;a(Lcom/mojang/brigadier/StringReader;Lce$b;Ljava/util/function/Function;Ljava/util/function/Supplier;Ljava/util/function/Function;)Lce;intermediary method_9043Lnet/minecraft/class_2096;method_9043(Lcom/mojang/brigadier/StringReader;Lnet/minecraft/class_2096$class_2098;Ljava/util/function/Function;Ljava/util/function/Supplier;Ljava/util/function/Function;)Lnet/minecraft/class_2096;named parseLnet/minecraft/predicate/NumberRange;parse(Lcom/mojang/brigadier/StringReader;Lnet/minecraft/predicate/NumberRange$CommandFactory;Ljava/util/function/Function;Ljava/util/function/Supplier;Ljava/util/function/Function;)Lnet/minecraft/predicate/NumberRange;
-
fromStringReader
@Nullable private static <T extends Number> T fromStringReader(com.mojang.brigadier.StringReader reader, Function<String,T> converter, Supplier<com.mojang.brigadier.exceptions.DynamicCommandExceptionType> exceptionTypeSupplier) throws com.mojang.brigadier.exceptions.CommandSyntaxException
- 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector official aLce;a(Lcom/mojang/brigadier/StringReader;Ljava/util/function/Function;Ljava/util/function/Supplier;)Ljava/lang/Number;intermediary method_9037Lnet/minecraft/class_2096;method_9037(Lcom/mojang/brigadier/StringReader;Ljava/util/function/Function;Ljava/util/function/Supplier;)Ljava/lang/Number;named fromStringReaderLnet/minecraft/predicate/NumberRange;fromStringReader(Lcom/mojang/brigadier/StringReader;Ljava/util/function/Function;Ljava/util/function/Supplier;)Ljava/lang/Number;
-
isNextCharValid
private static boolean isNextCharValid(com.mojang.brigadier.StringReader reader)
- Mappings:
Namespace Name Mixin selector official aLce;a(Lcom/mojang/brigadier/StringReader;)Zintermediary method_9040Lnet/minecraft/class_2096;method_9040(Lcom/mojang/brigadier/StringReader;)Znamed isNextCharValidLnet/minecraft/predicate/NumberRange;isNextCharValid(Lcom/mojang/brigadier/StringReader;)Z
-
map
@Nullable private static <T> T map(@Nullable T object, Function<T,T> function)
- Mappings:
Namespace Name Mixin selector official aLce;a(Ljava/lang/Object;Ljava/util/function/Function;)Ljava/lang/Object;intermediary method_9035Lnet/minecraft/class_2096;method_9035(Ljava/lang/Object;Ljava/util/function/Function;)Ljava/lang/Object;named mapLnet/minecraft/predicate/NumberRange;map(Ljava/lang/Object;Ljava/util/function/Function;)Ljava/lang/Object;
-
-