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 dht
intermediary net/minecraft/class_44
named net/minecraft/loot/provider/number/ConstantLootNumberProvider
  • Field Details

    • value

      private final float value
      Mappings:
      Namespace Name Mixin selector
      official a Ldht;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

      private ConstantLootNumberProvider​(float value)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldht;<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 Ldhv;a()Ldhu;
      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 Ldhv;b(Ldei;)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 Ldht;a(F)Ldht;
      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 object)
      Overrides:
      equals in class Object
      Mappings:
      Namespace Name Mixin selector
      official equals Ldht;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
      Mappings:
      Namespace Name Mixin selector
      official hashCode Ldht;hashCode()I
      intermediary hashCode Lnet/minecraft/class_44;hashCode()I
      named hashCode Lnet/minecraft/loot/provider/number/ConstantLootNumberProvider;hashCode()I