Package net.minecraft.util
Class WeightedRandomFishingLoot
java.lang.Object
net.minecraft.util.WeightedPicker.Entry
net.minecraft.util.WeightedRandomFishingLoot
public class WeightedRandomFishingLoot extends WeightedPicker.Entry
- Mappings:
Namespace Name official usintermediary net/minecraft/class_1888named net/minecraft/util/WeightedRandomFishingLoot
-
Field Summary
Fields Modifier and Type Field Description private floatdamagePercentprivate booleanenchantableprivate ItemStackstackFields inherited from class net.minecraft.util.WeightedPicker.Entry
weight -
Constructor Summary
Constructors Constructor Description WeightedRandomFishingLoot(ItemStack stack, int i) -
Method Summary
Modifier and Type Method Description ItemStackgetItemStack(Random random)WeightedRandomFishingLootsetDamagePercent(float percent)WeightedRandomFishingLootsetEnchantable()
-
Field Details
-
stack
- Mappings:
Namespace Name Mixin selector official bLus;b:Lzx;intermediary field_8107Lnet/minecraft/class_1888;field_8107:Lnet/minecraft/class_2056;named stackLnet/minecraft/util/WeightedRandomFishingLoot;stack:Lnet/minecraft/item/ItemStack;
-
damagePercent
private float damagePercent- Mappings:
Namespace Name Mixin selector official cLus;c:Fintermediary field_8108Lnet/minecraft/class_1888;field_8108:Fnamed damagePercentLnet/minecraft/util/WeightedRandomFishingLoot;damagePercent:F
-
enchantable
private boolean enchantable- Mappings:
Namespace Name Mixin selector official dLus;d:Zintermediary field_8109Lnet/minecraft/class_1888;field_8109:Znamed enchantableLnet/minecraft/util/WeightedRandomFishingLoot;enchantable:Z
-
-
Constructor Details
-
WeightedRandomFishingLoot
- Mappings:
Namespace Name Mixin selector official <init>Lus;<init>(Lzx;I)Vintermediary <init>Lnet/minecraft/class_1888;<init>(Lnet/minecraft/class_2056;I)Vnamed <init>Lnet/minecraft/util/WeightedRandomFishingLoot;<init>(Lnet/minecraft/item/ItemStack;I)V
-
-
Method Details
-
getItemStack
- Mappings:
Namespace Name Mixin selector official aLus;a(Ljava/util/Random;)Lzx;intermediary method_7748Lnet/minecraft/class_1888;method_7748(Ljava/util/Random;)Lnet/minecraft/class_2056;named getItemStackLnet/minecraft/util/WeightedRandomFishingLoot;getItemStack(Ljava/util/Random;)Lnet/minecraft/item/ItemStack;
-
setDamagePercent
- Mappings:
Namespace Name Mixin selector official aLus;a(F)Lus;intermediary method_7747Lnet/minecraft/class_1888;method_7747(F)Lnet/minecraft/class_1888;named setDamagePercentLnet/minecraft/util/WeightedRandomFishingLoot;setDamagePercent(F)Lnet/minecraft/util/WeightedRandomFishingLoot;
-
setEnchantable
- Mappings:
Namespace Name Mixin selector official aLus;a()Lus;intermediary method_7746Lnet/minecraft/class_1888;method_7746()Lnet/minecraft/class_1888;named setEnchantableLnet/minecraft/util/WeightedRandomFishingLoot;setEnchantable()Lnet/minecraft/util/WeightedRandomFishingLoot;
-