Class ConstantLootNumberProvider

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

public final class ConstantLootNumberProvider extends Object implements LootNumberProvider
Mappings:
Namespace Name
official dut
intermediary net/minecraft/class_44
named net/minecraft/loot/provider/number/ConstantLootNumberProvider
  • Field Details

    • value

      final float value
      Mappings:
      Namespace Name Mixin selector
      official a Ldut;a:F
      intermediary field_922 Lnet/minecraft/class_44;field_922:F
      named value Lnet/minecraft/loot/provider/number/ConstantLootNumberProvider;value:F
  • Constructor Details

    • ConstantLootNumberProvider

      ConstantLootNumberProvider(float value)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldut;<init>(F)V
      intermediary <init> Lnet/minecraft/class_44;<init>(F)V
      named <init> Lnet/minecraft/loot/provider/number/ConstantLootNumberProvider;<init>(F)V
  • Method Details

    • getType

      public LootNumberProviderType getType()
      Specified by:
      getType in interface LootNumberProvider
      Mappings:
      Namespace Name Mixin selector
      official a Lduv;a()Lduu;
      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;
    • nextFloat

      public float nextFloat(LootContext context)
      Specified by:
      nextFloat in interface LootNumberProvider
      Mappings:
      Namespace Name Mixin selector
      official b Lduv;b(Ldrg;)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 ConstantLootNumberProvider create(float value)
      Mappings:
      Namespace Name Mixin selector
      official a Ldut;a(F)Ldut;
      intermediary method_32448 Lnet/minecraft/class_44;method_32448(F)Lnet/minecraft/class_44;
      named create Lnet/minecraft/loot/provider/number/ConstantLootNumberProvider;create(F)Lnet/minecraft/loot/provider/number/ConstantLootNumberProvider;
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
      Mappings:
      Namespace Name Mixin selector
      official equals Ldut;equals(Ljava/lang/Object;)Z
      intermediary equals Lnet/minecraft/class_44;equals(Ljava/lang/Object;)Z
      named equals Lnet/minecraft/loot/provider/number/ConstantLootNumberProvider;equals(Ljava/lang/Object;)Z
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object