Class IntProvider
java.lang.Object
net.minecraft.util.math.intprovider.IntProvider
- Direct Known Subclasses:
BiasedToBottomIntProvider
,ClampedIntProvider
,ClampedNormalIntProvider
,ConstantIntProvider
,UniformIntProvider
,WeightedListIntProvider
- Mappings:
Namespace Name official bdc
intermediary net/minecraft/class_6017
named net/minecraft/util/math/intprovider/IntProvider
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final com.mojang.serialization.Codec<com.mojang.datafixers.util.Either<Integer,
IntProvider>> static final com.mojang.serialization.Codec<IntProvider>
static final com.mojang.serialization.Codec<IntProvider>
static final com.mojang.serialization.Codec<IntProvider>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic com.mojang.serialization.Codec<IntProvider>
createValidatingCodec
(int min, int max) static <T extends IntProvider>
com.mojang.serialization.Codec<T>createValidatingCodec
(int min, int max, com.mojang.serialization.Codec<T> providerCodec) abstract int
abstract int
getMax()
abstract int
getMin()
abstract IntProviderType<?>
getType()
-
Field Details
-
INT_CODEC
private static final com.mojang.serialization.Codec<com.mojang.datafixers.util.Either<Integer,IntProvider>> INT_CODEC- Mappings:
Namespace Name Mixin selector official a
Lbdc;a:Lcom/mojang/serialization/Codec;
intermediary field_29945
Lnet/minecraft/class_6017;field_29945:Lcom/mojang/serialization/Codec;
named INT_CODEC
Lnet/minecraft/util/math/intprovider/IntProvider;INT_CODEC:Lcom/mojang/serialization/Codec;
-
VALUE_CODEC
- Mappings:
Namespace Name Mixin selector official c
Lbdc;c:Lcom/mojang/serialization/Codec;
intermediary field_29946
Lnet/minecraft/class_6017;field_29946:Lcom/mojang/serialization/Codec;
named VALUE_CODEC
Lnet/minecraft/util/math/intprovider/IntProvider;VALUE_CODEC:Lcom/mojang/serialization/Codec;
-
NON_NEGATIVE_CODEC
- Mappings:
Namespace Name Mixin selector official d
Lbdc;d:Lcom/mojang/serialization/Codec;
intermediary field_33450
Lnet/minecraft/class_6017;field_33450:Lcom/mojang/serialization/Codec;
named NON_NEGATIVE_CODEC
Lnet/minecraft/util/math/intprovider/IntProvider;NON_NEGATIVE_CODEC:Lcom/mojang/serialization/Codec;
-
POSITIVE_CODEC
- Mappings:
Namespace Name Mixin selector official e
Lbdc;e:Lcom/mojang/serialization/Codec;
intermediary field_33451
Lnet/minecraft/class_6017;field_33451:Lcom/mojang/serialization/Codec;
named POSITIVE_CODEC
Lnet/minecraft/util/math/intprovider/IntProvider;POSITIVE_CODEC:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
IntProvider
public IntProvider()
-
-
Method Details
-
createValidatingCodec
- Mappings:
Namespace Name Mixin selector official b
Lbdc;b(II)Lcom/mojang/serialization/Codec;
intermediary method_35004
Lnet/minecraft/class_6017;method_35004(II)Lcom/mojang/serialization/Codec;
named createValidatingCodec
Lnet/minecraft/util/math/intprovider/IntProvider;createValidatingCodec(II)Lcom/mojang/serialization/Codec;
-
createValidatingCodec
public static <T extends IntProvider> com.mojang.serialization.Codec<T> createValidatingCodec(int min, int max, com.mojang.serialization.Codec<T> providerCodec) - Mappings:
Namespace Name Mixin selector official a
Lbdc;a(IILcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;
intermediary method_49103
Lnet/minecraft/class_6017;method_49103(IILcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;
named createValidatingCodec
Lnet/minecraft/util/math/intprovider/IntProvider;createValidatingCodec(IILcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;
-
get
- Mappings:
Namespace Name Mixin selector official a
Lbdc;a(Lapf;)I
intermediary method_35008
Lnet/minecraft/class_6017;method_35008(Lnet/minecraft/class_5819;)I
named get
Lnet/minecraft/util/math/intprovider/IntProvider;get(Lnet/minecraft/util/math/random/Random;)I
-
getMin
public abstract int getMin()- Mappings:
Namespace Name Mixin selector official a
Lbdc;a()I
intermediary method_35009
Lnet/minecraft/class_6017;method_35009()I
named getMin
Lnet/minecraft/util/math/intprovider/IntProvider;getMin()I
-
getMax
public abstract int getMax()- Mappings:
Namespace Name Mixin selector official b
Lbdc;b()I
intermediary method_35011
Lnet/minecraft/class_6017;method_35011()I
named getMax
Lnet/minecraft/util/math/intprovider/IntProvider;getMax()I
-
getType
- Mappings:
Namespace Name Mixin selector official c
Lbdc;c()Lbdd;
intermediary method_35012
Lnet/minecraft/class_6017;method_35012()Lnet/minecraft/class_6018;
named getType
Lnet/minecraft/util/math/intprovider/IntProvider;getType()Lnet/minecraft/util/math/intprovider/IntProviderType;
-