<divclass="inheritance"title="Inheritance Tree"><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">java.lang.Object</a>
<divclass="type-signature"><spanclass="modifiers">public final class </span><spanclass="element-name type-name-label">LootContext</span>
<spanclass="extends-implements">extends <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">Object</a></span></div>
<divclass="block">Represents additional information a <ahref="LootTable.html"title="interface in org.bukkit.loot"><code>LootTable</code></a> can use to modify it's
<divclass="col-second even-row-color"><code><ahref="LootContext.Builder.html"class="type-name-link"title="class in org.bukkit.loot">LootContext.Builder</a></code></div>
<divclass="col-last even-row-color">
<divclass="block">Utility class to make building <ahref="LootContext.html"title="class in org.bukkit.loot"><code>LootContext</code></a> easier.</div>
</div>
</div>
</section>
</li>
<!-- =========== FIELD SUMMARY =========== -->
<li>
<sectionclass="field-summary"id="field-summary">
<h2>Field Summary</h2>
<divclass="caption"><span>Fields</span></div>
<divclass="summary-table three-column-summary">
<divclass="table-header col-first">Modifier and Type</div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a><ahref="../entity/HumanEntity.html"title="interface in org.bukkit.entity">HumanEntity</a></code></div>
<divclass="block">Get the <ahref="../entity/HumanEntity.html"title="interface in org.bukkit.entity"><code>HumanEntity</code></a> who killed the <ahref="#getLootedEntity()"><code>getLootedEntity()</code></a>.</div>
</div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="../Location.html"title="class in org.bukkit">Location</a></code></div>
<divclass="block">The <ahref="../Location.html"title="class in org.bukkit"><code>Location</code></a> to store where the loot will be generated.</div>
</div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a><ahref="../entity/Entity.html"title="interface in org.bukkit.entity">Entity</a></code></div>
<divclass="block">Represents the <ahref="../potion/PotionEffectType.html#LUCK"><code>PotionEffectType.LUCK</code></a> that an
entity can have.</div>
</div>
</div>
</div>
</div>
<divclass="inherited-list">
<h3id="methods-inherited-from-class-java.lang.Object">Methods inherited from class java.lang.<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">Object</a></h3>
<code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#clone()"title="class or interface in java.lang"class="external-link">clone</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"title="class or interface in java.lang"class="external-link">equals</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#finalize()"title="class or interface in java.lang"class="external-link">finalize</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#getClass()"title="class or interface in java.lang"class="external-link">getClass</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#hashCode()"title="class or interface in java.lang"class="external-link">hashCode</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#notify()"title="class or interface in java.lang"class="external-link">notify</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#notifyAll()"title="class or interface in java.lang"class="external-link">notifyAll</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#toString()"title="class or interface in java.lang"class="external-link">toString</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#wait()"title="class or interface in java.lang"class="external-link">wait</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#wait(long)"title="class or interface in java.lang"class="external-link">wait</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#wait(long,int)"title="class or interface in java.lang"class="external-link">wait</a></code></div>
<li><ahref="../../../constant-values.html#org.bukkit.loot.LootContext.DEFAULT_LOOT_MODIFIER">Constant Field Values</a></li>
</ul>
</dd>
</dl>
</section>
</li>
</ul>
</section>
</li>
<!-- ============ METHOD DETAIL ========== -->
<li>
<sectionclass="method-details"id="method-detail">
<h2>Method Details</h2>
<ulclass="member-list">
<li>
<sectionclass="detail"id="getLocation()">
<h3>getLocation</h3>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="../Location.html"title="class in org.bukkit">Location</a></span> <spanclass="element-name">getLocation</span>()</div>
<divclass="block">The <ahref="../Location.html"title="class in org.bukkit"><code>Location</code></a> to store where the loot will be generated.</div>
<dlclass="notes">
<dt>Returns:</dt>
<dd>the Location of where the loot will be generated</dd>
<ahref="../enchantments/Enchantment.html#LOOT_BONUS_MOBS"><code>Enchantment.LOOT_BONUS_MOBS</code></a> the
<ahref="#getKiller()"><code>getKiller()</code></a> entity has on their equipped item.
This value is only set via
<ahref="LootContext.Builder.html#lootingModifier(int)"><code>LootContext.Builder.lootingModifier(int)</code></a>. If not set, the
<ahref="#getKiller()"><code>getKiller()</code></a> entity's looting level will be used instead.</div>
<dlclass="notes">
<dt>Returns:</dt>
<dd>the looting level</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="getLootedEntity()">
<h3>getLootedEntity</h3>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a>
</span><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a><ahref="../entity/Entity.html"title="interface in org.bukkit.entity">Entity</a></span> <spanclass="element-name">getLootedEntity</span>()</div>
<divclass="block">Get the <ahref="../entity/Entity.html"title="interface in org.bukkit.entity"><code>Entity</code></a> that was killed. Can be null.</div>
<dlclass="notes">
<dt>Returns:</dt>
<dd>the looted entity or null</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="getKiller()">
<h3>getKiller</h3>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a>
</span><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a><ahref="../entity/HumanEntity.html"title="interface in org.bukkit.entity">HumanEntity</a></span> <spanclass="element-name">getKiller</span>()</div>
<divclass="block">Get the <ahref="../entity/HumanEntity.html"title="interface in org.bukkit.entity"><code>HumanEntity</code></a> who killed the <ahref="#getLootedEntity()"><code>getLootedEntity()</code></a>.