Class RandomChanceWithLootingLootCondition

java.lang.Object
net.minecraft.loot.condition.RandomChanceWithLootingLootCondition
All Implemented Interfaces:
Predicate<LootContext>, LootCondition, LootContextAware

public class RandomChanceWithLootingLootCondition
extends Object
implements LootCondition
Mappings:
Namespace Name
official dhg
intermediary net/minecraft/class_225
named net/minecraft/loot/condition/RandomChanceWithLootingLootCondition
  • Field Details

    • chance

      private final float chance
      Mappings:
      Namespace Name Mixin selector
      official a Ldhg;a:F
      intermediary field_1300 Lnet/minecraft/class_225;field_1300:F
      named chance Lnet/minecraft/loot/condition/RandomChanceWithLootingLootCondition;chance:F
    • lootingMultiplier

      private final float lootingMultiplier
      Mappings:
      Namespace Name Mixin selector
      official b Ldhg;b:F
      intermediary field_1299 Lnet/minecraft/class_225;field_1299:F
      named lootingMultiplier Lnet/minecraft/loot/condition/RandomChanceWithLootingLootCondition;lootingMultiplier:F
  • Constructor Details

    • RandomChanceWithLootingLootCondition

      private RandomChanceWithLootingLootCondition​(float chance, float lootingMultiplier)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldhg;<init>(FF)V
      intermediary <init> Lnet/minecraft/class_225;<init>(FF)V
      named <init> Lnet/minecraft/loot/condition/RandomChanceWithLootingLootCondition;<init>(FF)V
  • Method Details

    • getType

      public LootConditionType getType()
      Specified by:
      getType in interface LootCondition
      Mappings:
      Namespace Name Mixin selector
      official a Ldha;a()Ldhb;
      intermediary method_29325 Lnet/minecraft/class_5341;method_29325()Lnet/minecraft/class_5342;
      named getType Lnet/minecraft/loot/condition/LootCondition;getType()Lnet/minecraft/loot/condition/LootConditionType;
    • getRequiredParameters

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

      public boolean test​(LootContext lootContext)
      Specified by:
      test in interface Predicate<LootContext>
      Mappings:
      Namespace Name Mixin selector
      official a Ldhg;a(Ldei;)Z
      intermediary method_950 Lnet/minecraft/class_225;method_950(Lnet/minecraft/class_47;)Z
      named test Lnet/minecraft/loot/condition/RandomChanceWithLootingLootCondition;test(Lnet/minecraft/loot/context/LootContext;)Z
    • builder

      public static LootCondition.Builder builder​(float chance, float lootingMultiplier)
      Mappings:
      Namespace Name Mixin selector
      official a Ldhg;a(FF)Ldha$a;
      intermediary method_953 Lnet/minecraft/class_225;method_953(FF)Lnet/minecraft/class_5341$class_210;
      named builder Lnet/minecraft/loot/condition/RandomChanceWithLootingLootCondition;builder(FF)Lnet/minecraft/loot/condition/LootCondition$Builder;