Class IntProvider

java.lang.Object
net.minecraft.util.valueproviders.IntProvider
Direct Known Subclasses:
BiasedToBottomInt, ClampedInt, ClampedNormalInt, ConstantInt, UniformInt, WeightedListInt

public abstract class IntProvider extends Object
  • Field Details Link icon

    • CONSTANT_OR_DISPATCH_CODEC Link icon

      private static final com.mojang.serialization.Codec<com.mojang.datafixers.util.Either<Integer,IntProvider>> CONSTANT_OR_DISPATCH_CODEC
    • CODEC Link icon

      public static final com.mojang.serialization.Codec<IntProvider> CODEC
    • NON_NEGATIVE_CODEC Link icon

      public static final com.mojang.serialization.Codec<IntProvider> NON_NEGATIVE_CODEC
    • POSITIVE_CODEC Link icon

      public static final com.mojang.serialization.Codec<IntProvider> POSITIVE_CODEC
  • Constructor Details Link icon

    • IntProvider Link icon

      public IntProvider()
  • Method Details Link icon

    • codec Link icon

      public static com.mojang.serialization.Codec<IntProvider> codec(int p_146546_, int p_146547_)
    • validateCodec Link icon

      public static <T extends IntProvider> com.mojang.serialization.Codec<T> validateCodec(int p_338363_, int p_338219_, com.mojang.serialization.Codec<T> p_338307_)
    • validate Link icon

      private static <T extends IntProvider> com.mojang.serialization.DataResult<T> validate(int p_338299_, int p_338617_, T p_338788_)
    • sample Link icon

      public abstract int sample(RandomSource p_216855_)
    • getMinValue Link icon

      public abstract int getMinValue()
    • getMaxValue Link icon

      public abstract int getMaxValue()
    • getType Link icon

      public abstract IntProviderType<?> getType()