Class LootPoolSingletonContainer.EntryBase
java.lang.Object
net.minecraft.world.level.storage.loot.entries.LootPoolSingletonContainer.EntryBase
- All Implemented Interfaces:
LootPoolEntry
- Enclosing class:
LootPoolSingletonContainer
protected abstract class LootPoolSingletonContainer.EntryBase
extends Object
implements LootPoolEntry
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
getWeight
(float pLuck) Gets the effective weight based on the loot entry's weight and quality multiplied by looter's luck.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.world.level.storage.loot.entries.LootPoolEntry
createItemStack
-
Constructor Details
-
EntryBase
protected EntryBase()
-
-
Method Details
-
getWeight
public int getWeight(float pLuck) Gets the effective weight based on the loot entry's weight and quality multiplied by looter's luck.- Specified by:
getWeight
in interfaceLootPoolEntry
-