Class EntityKillersValue
java.lang.Object
tech.anonymoushacker1279.immersiveweapons.world.level.loot.number_providers.EntityKillersValue
- All Implemented Interfaces:
net.minecraft.world.level.storage.loot.LootContextUser,net.minecraft.world.level.storage.loot.providers.number.NumberProvider
public class EntityKillersValue
extends Object
implements net.minecraft.world.level.storage.loot.providers.number.NumberProvider
Rolls are based on the number of entities that attacked the entity dropping loot.
Entities using this loot table must implement AttackerTracker, otherwise this will do nothing.
-
Field Summary
Fields -
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.level.storage.loot.LootContextUser
getReferencedContextParams, validateMethods inherited from interface net.minecraft.world.level.storage.loot.providers.number.NumberProvider
getInt
-
Field Details
-
CODEC
-
-
Method Details
-
getType
public net.minecraft.world.level.storage.loot.providers.number.LootNumberProviderType getType()- Specified by:
getTypein interfacenet.minecraft.world.level.storage.loot.providers.number.NumberProvider
-
getFloat
public float getFloat(net.minecraft.world.level.storage.loot.LootContext lootContext) - Specified by:
getFloatin interfacenet.minecraft.world.level.storage.loot.providers.number.NumberProvider
-
create
-
equals
-
hashCode
public int hashCode()
-