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 dmz
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 Ldmz;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 float2)
  • Method Details

    • getType

      public LootNumberProviderType getType()
      Specified by:
      getType in interface LootNumberProvider
      Mappings:
      Namespace Name Mixin selector
      official a Ldnb;a()Ldna;
      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 Ldnb;b(Ldjn;)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 Ldmz;a(F)Ldmz;
      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 Ldmz;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