Class FloatProvider
java.lang.Object
net.minecraft.util.math.floatprovider.FloatProvider
- All Implemented Interfaces:
FloatSupplier
- Direct Known Subclasses:
ClampedNormalFloatProvider
,ConstantFloatProvider
,TrapezoidFloatProvider
,UniformFloatProvider
- Mappings:
Namespace Name named net/minecraft/util/math/floatprovider/FloatProvider
intermediary net/minecraft/class_5863
official bpy
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final com.mojang.serialization.Codec
<com.mojang.datafixers.util.Either<Float, FloatProvider>> static final com.mojang.serialization.Codec
<FloatProvider> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic com.mojang.serialization.Codec
<FloatProvider> createValidatedCodec
(float min, float max) abstract float
getMax()
abstract float
getMin()
abstract FloatProviderType
<?> getType()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.util.math.floatprovider.FloatSupplier
get
-
Field Details
-
FLOAT_CODEC
private static final com.mojang.serialization.Codec<com.mojang.datafixers.util.Either<Float,FloatProvider>> FLOAT_CODEC- Mappings:
Namespace Name Mixin selector named FLOAT_CODEC
Lnet/minecraft/util/math/floatprovider/FloatProvider;FLOAT_CODEC:Lcom/mojang/serialization/Codec;
intermediary field_29006
Lnet/minecraft/class_5863;field_29006:Lcom/mojang/serialization/Codec;
official a
Lbpy;a:Lcom/mojang/serialization/Codec;
-
VALUE_CODEC
- Mappings:
Namespace Name Mixin selector named VALUE_CODEC
Lnet/minecraft/util/math/floatprovider/FloatProvider;VALUE_CODEC:Lcom/mojang/serialization/Codec;
intermediary field_29007
Lnet/minecraft/class_5863;field_29007:Lcom/mojang/serialization/Codec;
official c
Lbpy;c:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
FloatProvider
public FloatProvider()
-
-
Method Details
-
createValidatedCodec
public static com.mojang.serialization.Codec<FloatProvider> createValidatedCodec(float min, float max) - Mappings:
Namespace Name Mixin selector named createValidatedCodec
Lnet/minecraft/util/math/floatprovider/FloatProvider;createValidatedCodec(FF)Lcom/mojang/serialization/Codec;
intermediary method_33916
Lnet/minecraft/class_5863;method_33916(FF)Lcom/mojang/serialization/Codec;
official a
Lbpy;a(FF)Lcom/mojang/serialization/Codec;
-
getMin
public abstract float getMin()- Mappings:
Namespace Name Mixin selector named getMin
Lnet/minecraft/util/math/floatprovider/FloatProvider;getMin()F
intermediary method_33915
Lnet/minecraft/class_5863;method_33915()F
official a
Lbpy;a()F
-
getMax
public abstract float getMax()- Mappings:
Namespace Name Mixin selector named getMax
Lnet/minecraft/util/math/floatprovider/FloatProvider;getMax()F
intermediary method_33921
Lnet/minecraft/class_5863;method_33921()F
official b
Lbpy;b()F
-
getType
- Mappings:
Namespace Name Mixin selector named getType
Lnet/minecraft/util/math/floatprovider/FloatProvider;getType()Lnet/minecraft/util/math/floatprovider/FloatProviderType;
intermediary method_33923
Lnet/minecraft/class_5863;method_33923()Lnet/minecraft/class_5864;
official c
Lbpy;c()Lbpz;
-