Class IntProvider

java.lang.Object
net.minecraft.util.math.intprovider.IntProvider
Direct Known Subclasses:
BiasedToBottomIntProvider, ClampedIntProvider, ClampedNormalIntProvider, ConstantIntProvider, UniformIntProvider, WeightedListIntProvider

public abstract class IntProvider extends Object
Mappings:
Namespace Name
official bbr
intermediary net/minecraft/class_6017
named net/minecraft/util/math/intprovider/IntProvider
  • 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 Lbbr;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

      public static final com.mojang.serialization.Codec<IntProvider> VALUE_CODEC
      Mappings:
      Namespace Name Mixin selector
      official c Lbbr;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

      public static final com.mojang.serialization.Codec<IntProvider> NON_NEGATIVE_CODEC
      Mappings:
      Namespace Name Mixin selector
      official d Lbbr;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

      public static final com.mojang.serialization.Codec<IntProvider> POSITIVE_CODEC
      Mappings:
      Namespace Name Mixin selector
      official e Lbbr;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

      public static com.mojang.serialization.Codec<IntProvider> createValidatingCodec(int min, int max)
      Mappings:
      Namespace Name Mixin selector
      official b Lbbr;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;
    • get

      public abstract int get(Random random)
      Mappings:
      Namespace Name Mixin selector
      official a Lbbr;a(Laoh;)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 Lbbr;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 Lbbr;b()I
      intermediary method_35011 Lnet/minecraft/class_6017;method_35011()I
      named getMax Lnet/minecraft/util/math/intprovider/IntProvider;getMax()I
    • getType

      public abstract IntProviderType<?> getType()
      Mappings:
      Namespace Name Mixin selector
      official c Lbbr;c()Lbbs;
      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;