Class BinomialLootNumberProvider

java.lang.Object
net.minecraft.loot.provider.number.BinomialLootNumberProvider
All Implemented Interfaces:
LootContextAware, LootNumberProvider

public final class BinomialLootNumberProvider extends Object implements LootNumberProvider
Mappings:
Namespace Name
official dnl
intermediary net/minecraft/class_40
named net/minecraft/loot/provider/number/BinomialLootNumberProvider
  • Field Details

    • n

      Mappings:
      Namespace Name Mixin selector
      official a Ldnl;a:Ldno;
      intermediary field_918 Lnet/minecraft/class_40;field_918:Lnet/minecraft/class_5658;
      named n Lnet/minecraft/loot/provider/number/BinomialLootNumberProvider;n:Lnet/minecraft/loot/provider/number/LootNumberProvider;
    • p

      Mappings:
      Namespace Name Mixin selector
      official b Ldnl;b:Ldno;
      intermediary field_917 Lnet/minecraft/class_40;field_917:Lnet/minecraft/class_5658;
      named p Lnet/minecraft/loot/provider/number/BinomialLootNumberProvider;p:Lnet/minecraft/loot/provider/number/LootNumberProvider;
  • Constructor Details

    • BinomialLootNumberProvider

      BinomialLootNumberProvider(LootNumberProvider n, LootNumberProvider p)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldnl;<init>(Ldno;Ldno;)V
      intermediary <init> Lnet/minecraft/class_40;<init>(Lnet/minecraft/class_5658;Lnet/minecraft/class_5658;)V
      named <init> Lnet/minecraft/loot/provider/number/BinomialLootNumberProvider;<init>(Lnet/minecraft/loot/provider/number/LootNumberProvider;Lnet/minecraft/loot/provider/number/LootNumberProvider;)V
  • Method Details

    • getType

      public LootNumberProviderType getType()
      Specified by:
      getType in interface LootNumberProvider
      Mappings:
      Namespace Name Mixin selector
      official a Ldno;a()Ldnn;
      intermediary method_365 Lnet/minecraft/class_5658;method_365()Lnet/minecraft/class_5657;
      named getType Lnet/minecraft/loot/provider/number/LootNumberProvider;getType()Lnet/minecraft/loot/provider/number/LootNumberProviderType;
    • nextInt

      public int nextInt(LootContext context)
      Specified by:
      nextInt in interface LootNumberProvider
      Mappings:
      Namespace Name Mixin selector
      official a Ldno;a(Ldka;)I
      intermediary method_366 Lnet/minecraft/class_5658;method_366(Lnet/minecraft/class_47;)I
      named nextInt Lnet/minecraft/loot/provider/number/LootNumberProvider;nextInt(Lnet/minecraft/loot/context/LootContext;)I
    • nextFloat

      public float nextFloat(LootContext context)
      Specified by:
      nextFloat in interface LootNumberProvider
      Mappings:
      Namespace Name Mixin selector
      official b Ldno;b(Ldka;)F
      intermediary method_32454 Lnet/minecraft/class_5658;method_32454(Lnet/minecraft/class_47;)F
      named nextFloat Lnet/minecraft/loot/provider/number/LootNumberProvider;nextFloat(Lnet/minecraft/loot/context/LootContext;)F
    • create

      public static BinomialLootNumberProvider create(int n, float p)
      Mappings:
      Namespace Name Mixin selector
      official a Ldnl;a(IF)Ldnl;
      intermediary method_273 Lnet/minecraft/class_40;method_273(IF)Lnet/minecraft/class_40;
      named create Lnet/minecraft/loot/provider/number/BinomialLootNumberProvider;create(IF)Lnet/minecraft/loot/provider/number/BinomialLootNumberProvider;
    • getRequiredParameters

      public Set<LootContextParameter<?>> getRequiredParameters()
      Specified by:
      getRequiredParameters in interface LootContextAware
      Mappings:
      Namespace Name Mixin selector
      official b Ldkb;b()Ljava/util/Set;
      intermediary method_293 Lnet/minecraft/class_46;method_293()Ljava/util/Set;
      named getRequiredParameters Lnet/minecraft/loot/context/LootContextAware;getRequiredParameters()Ljava/util/Set;