Class ScoreLootNumberProvider

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

public class ScoreLootNumberProvider extends Object implements LootNumberProvider
Mappings:
Namespace Name
official duw
intermediary net/minecraft/class_5660
named net/minecraft/loot/provider/number/ScoreLootNumberProvider
  • Field Details

    • target

      final LootScoreProvider target
      Mappings:
      Namespace Name Mixin selector
      official a Lduw;a:Ldvc;
      intermediary field_27925 Lnet/minecraft/class_5660;field_27925:Lnet/minecraft/class_5670;
      named target Lnet/minecraft/loot/provider/number/ScoreLootNumberProvider;target:Lnet/minecraft/loot/provider/score/LootScoreProvider;
    • score

      final String score
      Mappings:
      Namespace Name Mixin selector
      official b Lduw;b:Ljava/lang/String;
      intermediary field_27926 Lnet/minecraft/class_5660;field_27926:Ljava/lang/String;
      named score Lnet/minecraft/loot/provider/number/ScoreLootNumberProvider;score:Ljava/lang/String;
    • scale

      final float scale
      Mappings:
      Namespace Name Mixin selector
      official c Lduw;c:F
      intermediary field_27927 Lnet/minecraft/class_5660;field_27927:F
      named scale Lnet/minecraft/loot/provider/number/ScoreLootNumberProvider;scale:F
  • Constructor Details

    • ScoreLootNumberProvider

      ScoreLootNumberProvider(LootScoreProvider target, String score, float scale)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lduw;<init>(Ldvc;Ljava/lang/String;F)V
      intermediary <init> Lnet/minecraft/class_5660;<init>(Lnet/minecraft/class_5670;Ljava/lang/String;F)V
      named <init> Lnet/minecraft/loot/provider/number/ScoreLootNumberProvider;<init>(Lnet/minecraft/loot/provider/score/LootScoreProvider;Ljava/lang/String;F)V
  • Method Details

    • getType

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

      public Set<LootContextParameter<?>> getRequiredParameters()
      Specified by:
      getRequiredParameters in interface LootContextAware
      Mappings:
      Namespace Name Mixin selector
      official b Ldrg;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;
    • create

      public static ScoreLootNumberProvider create(LootContext.EntityTarget target, String score)
      Mappings:
      Namespace Name Mixin selector
      official a Lduw;a(Ldrf$c;Ljava/lang/String;)Lduw;
      intermediary method_35569 Lnet/minecraft/class_5660;method_35569(Lnet/minecraft/class_47$class_50;Ljava/lang/String;)Lnet/minecraft/class_5660;
      named create Lnet/minecraft/loot/provider/number/ScoreLootNumberProvider;create(Lnet/minecraft/loot/context/LootContext$EntityTarget;Ljava/lang/String;)Lnet/minecraft/loot/provider/number/ScoreLootNumberProvider;
    • create

      public static ScoreLootNumberProvider create(LootContext.EntityTarget target, String score, float scale)
      Mappings:
      Namespace Name Mixin selector
      official a Lduw;a(Ldrf$c;Ljava/lang/String;F)Lduw;
      intermediary method_35570 Lnet/minecraft/class_5660;method_35570(Lnet/minecraft/class_47$class_50;Ljava/lang/String;F)Lnet/minecraft/class_5660;
      named create Lnet/minecraft/loot/provider/number/ScoreLootNumberProvider;create(Lnet/minecraft/loot/context/LootContext$EntityTarget;Ljava/lang/String;F)Lnet/minecraft/loot/provider/number/ScoreLootNumberProvider;
    • nextFloat

      public float nextFloat(LootContext context)
      Specified by:
      nextFloat in interface LootNumberProvider
      Mappings:
      Namespace Name Mixin selector
      official b Lduu;b(Ldrf;)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