Class WeightedRandomFishingLoot

java.lang.Object
net.minecraft.util.collection.Weighting.Weight
net.minecraft.util.WeightedRandomFishingLoot

public class WeightedRandomFishingLoot extends Weighting.Weight
Mappings:
Namespace Name
official us
intermediary net/minecraft/class_2154
named net/minecraft/util/WeightedRandomFishingLoot
  • Field Details

    • stack

      private final ItemStack stack
      Mappings:
      Namespace Name Mixin selector
      official b Lus;b:Lzx;
      intermediary field_9116 Lnet/minecraft/class_2154;field_9116:Lnet/minecraft/class_1071;
      named stack Lnet/minecraft/util/WeightedRandomFishingLoot;stack:Lnet/minecraft/item/ItemStack;
    • damagePercent

      private float damagePercent
      Mappings:
      Namespace Name Mixin selector
      official c Lus;c:F
      intermediary field_9117 Lnet/minecraft/class_2154;field_9117:F
      named damagePercent Lnet/minecraft/util/WeightedRandomFishingLoot;damagePercent:F
    • enchantable

      private boolean enchantable
      Mappings:
      Namespace Name Mixin selector
      official d Lus;d:Z
      intermediary field_9118 Lnet/minecraft/class_2154;field_9118:Z
      named enchantable Lnet/minecraft/util/WeightedRandomFishingLoot;enchantable:Z
  • Constructor Details

    • WeightedRandomFishingLoot

      public WeightedRandomFishingLoot(ItemStack stack, int i)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lus;<init>(Lzx;I)V
      intermediary <init> Lnet/minecraft/class_2154;<init>(Lnet/minecraft/class_1071;I)V
      named <init> Lnet/minecraft/util/WeightedRandomFishingLoot;<init>(Lnet/minecraft/item/ItemStack;I)V
  • Method Details

    • getItemStack

      public ItemStack getItemStack(Random random)
      Mappings:
      Namespace Name Mixin selector
      official a Lus;a(Ljava/util/Random;)Lzx;
      intermediary method_8395 Lnet/minecraft/class_2154;method_8395(Ljava/util/Random;)Lnet/minecraft/class_1071;
      named getItemStack Lnet/minecraft/util/WeightedRandomFishingLoot;getItemStack(Ljava/util/Random;)Lnet/minecraft/item/ItemStack;
    • setDamagePercent

      public WeightedRandomFishingLoot setDamagePercent(float percent)
      Mappings:
      Namespace Name Mixin selector
      official a Lus;a(F)Lus;
      intermediary method_8394 Lnet/minecraft/class_2154;method_8394(F)Lnet/minecraft/class_2154;
      named setDamagePercent Lnet/minecraft/util/WeightedRandomFishingLoot;setDamagePercent(F)Lnet/minecraft/util/WeightedRandomFishingLoot;
    • setEnchantable

      public WeightedRandomFishingLoot setEnchantable()
      Mappings:
      Namespace Name Mixin selector
      official a Lus;a()Lus;
      intermediary method_8393 Lnet/minecraft/class_2154;method_8393()Lnet/minecraft/class_2154;
      named setEnchantable Lnet/minecraft/util/WeightedRandomFishingLoot;setEnchantable()Lnet/minecraft/util/WeightedRandomFishingLoot;