Package org.bukkit.loot
Class LootContext
java.lang.Object
org.bukkit.loot.LootContext
Represents additional information a 
LootTable can use to modify it's
 generated loot.- 
Nested Class SummaryNested Classes
- 
Field SummaryFields
- 
Method SummaryModifier and TypeMethodDescriptionGet theHumanEntitywho killed thegetLootedEntity().TheLocationto store where the loot will be generated.Get theEntitythat was killed.intDeprecated.no longer functionalfloatgetLuck()Represents thePotionEffectType.LUCKthat an entity can have.
- 
Field Details- 
DEFAULT_LOOT_MODIFIERpublic static final int DEFAULT_LOOT_MODIFIER- See Also:
 
 
- 
- 
Method Details- 
getLocationTheLocationto store where the loot will be generated.- Returns:
- the Location of where the loot will be generated
 
- 
getLuckpublic float getLuck()Represents thePotionEffectType.LUCKthat an entity can have. The higher the value the better chance of receiving more loot.- Returns:
- luck
 
- 
getLootingModifierDeprecated.no longer functionalRepresents theEnchantment.LOOTINGthegetKiller()entity has on their equipped item. This value is only set viaLootContext.Builder.lootingModifier(int). If not set, thegetKiller()entity's looting level will be used instead.- Returns:
- the looting level
 
- 
getLootedEntityGet theEntitythat was killed. Can be null.- Returns:
- the looted entity or null
 
- 
getKillerGet theHumanEntitywho killed thegetLootedEntity(). Can be null.- Returns:
- the killer entity, or null.
 
 
-