package Ġcom . the only t ails . loot gob lin Ċ Ċ import Ġnet . minecraft . advance ments . crit ere on .* Ċ import Ġnet . minecraft . core . Block Pos Ċ import Ġnet . minecraft . world . item . ench ant ment . Enchant ment Ċ import Ġnet . minecraft . world . level . block . Block Ċ import Ġnet . minecraft . world . level . storage . loot . Lo ot Context Ċ import Ġnet . minecraft . world . level . storage . loot . predicates .* Ċ import Ġnet . minecraft . world . level . storage . loot . predicates . Alternative Lo ot Item Condition . alternative Ċ import Ġnet . minecraft . world . level . storage . loot . predicates . Bonus Level Table Condition . bonus Level Flat Chance Ċ import Ġnet . minecraft . world . level . storage . loot . predicates . Damage Source Condition . has Damage Source Ċ import Ġnet . minecraft . world . level . storage . loot . predicates . Explo sion Condition . surv ives Explo sion Ċ import Ġnet . minecraft . world . level . storage . loot . predicates . In verted Lo ot Item Condition . invert Ċ import Ġnet . minecraft . world . level . storage . loot . predicates . Location Check . check Location Ċ import Ġnet . minecraft . world . level . storage . loot . predicates . Lo ot Item BlockState Property Condition . has BlockState Properties Ċ import Ġnet . minecraft . world . level . storage . loot . predicates . Lo ot Item Entity Property Condition . entity Present Ċ import Ġnet . minecraft . world . level . storage . loot . predicates . Lo ot Item Entity Property Condition . has Properties Ċ import Ġnet . minecraft . world . level . storage . loot . predicates . Lo ot Item K illed By Player Condition . k illed By Player Ċ import Ġnet . minecraft . world . level . storage . loot . predicates . Lo ot Item Random Chance Condition . random Chance Ċ import Ġnet . minecraft . world . level . storage . loot . predicates . Lo ot Item Random Chance With Lo oting Condition . random Chance And Lo oting Boost Ċ import Ġnet . minecraft . world . level . storage . loot . predicates . Match Tool . tool Matches Ċ import Ġnet . minecraft . world . level . storage . loot . predicates . Lo ot Item BlockState Property Condition Ġas ĠBlock Property Condition Ċ import Ġnet . minecraft . world . level . storage . loot . predicates . Lo ot Item Condition . Builder Ġas ĠCondition Ċ Ċ type alias ĠK illed By Player Condition Ġ= ĠL oot Item K illed By Player Condition Ċ type alias ĠEntity Property Condition Ġ= ĠL oot Item Entity Property Condition Ċ type alias ĠL oot ing Random Chance Condition Ġ= ĠL oot Item Random Chance With Lo oting Condition Ċ type alias ĠRandom Chance Condition Ġ= ĠL oot Item Random Chance Condition Ċ type alias ĠAltern ative Condition Ġ= ĠAltern ative Lo ot Item Condition Ċ type alias ĠIn verted Condition Ġ= ĠIn verted Lo ot Item Condition Ċ Ċ /** Ċ Ġ* ĠUses Ġan Ġ[ In verted Condition ] Ġcondition Ġto Ġinvert Ġanother Ġ[ Condition ]. Ċ Ġ* Ċ Ġ* Ġ@ param Ġcondition Ġthe Ġcondition Ġbeing Ġinverted . Ċ Ġ* Ġ@ author ĠThe Only T ails Ċ Ġ*/ Ċ @ Lo ot G ob lin Ċ fun Ġinverted ( condition : ĠCondition , Ġbody : ĠCondition . () Ġ-> ĠCondition Ġ= Ġ{ Ġthis Ġ}) Ġ= Ġinvert ( condition ). body () Ċ Ċ /** Ċ Ġ* ĠUses Ġan Ġ[ Alternative Condition ] Ġcondition Ġto Ġchoose Ġbetween Ġmultiple Ġ[ Condition ] s . Ċ Ġ* Ċ Ġ* Ġ@ param Ġconditions Ġthe Ġconditions Ġbeing Ġchosen Ġfrom . Ċ Ġ* Ġ@ author ĠThe Only T ails Ċ Ġ*/ Ċ @ Lo ot G ob lin Ċ fun Ġalternative ( Ċ ĉ conditions : ĠCollection < Condition >, Ċ ĉ body : ĠCondition . () Ġ-> ĠCondition Ġ= Ġ{ Ġthis Ġ}, Ċ ) Ġ= Ġalternative (* conditions . to Typed Array ()). body () Ċ Ċ /** Ċ Ġ* ĠCreates Ġa Ġ[ Random Chance Condition ] Ġcondition . Ċ Ġ* Ċ Ġ* Ġ@ param Ġchance Ġthe Ġchance Ġof Ġthis Ġcondition . Ċ Ġ* Ġ@ author ĠThe Only T ails Ċ Ġ*/ Ċ @ Lo ot G ob lin Ċ fun Ġrandom Chance ( chance : ĠFloat , Ġbody : ĠCondition . () Ġ-> ĠCondition Ġ= Ġ{ Ġthis Ġ}) Ġ= Ġrandom Chance ( chance ). body () Ċ Ċ /** Ċ Ġ* ĠCreates Ġa Ġ[ Lo oting Random Chance Condition ] Ġcondition . Ċ Ġ* Ċ Ġ* Ġ@ param Ġchance Ġthe Ġchance Ġof Ġthis Ġcondition . Ċ Ġ* Ġ@ param Ġlo oting Multiplier Ġthe Ġmultiplier Ġof Ġthe Ġoutput Ġif Ġlo oting Ġis Ġapplied . Ċ Ġ* Ġ@ author ĠThe Only T ails Ċ Ġ*/ Ċ @ Lo ot G ob lin Ċ fun Ġrandom Chance With Lo oting ( Ċ ĉ chance : ĠFloat , Ċ ĉ lo oting Multiplier : ĠFloat , Ċ ĉ body : ĠCondition . () Ġ-> ĠCondition Ġ= Ġ{ Ġthis Ġ}, Ċ ) Ġ= Ġrandom Chance And Lo oting Boost ( chance , Ġlo oting Multiplier ). body () Ċ Ċ /** Ċ Ġ* ĠCreates Ġa Ġ[ Entity Property Condition ] Ġcondition . Ċ Ġ* Ċ Ġ* Ġ@ param Ġtarget Ġthe Ġentity Ġtargeted Ġby Ġthis Ġcondition . Ċ Ġ* Ġ@ param Ġpredicate Ġthe Ġ[ Entity Predicate ] Ġthat Ġmatches Ġagainst Ġthe Ġtargeted Ġentity . Ċ Ġ* Ġ@ author ĠThe Only T ails Ċ Ġ*/ Ċ @ Lo ot G ob lin Ċ fun Ġentity Properties ( Ċ ĉ target : ĠL oot Context . Entity Target , Ċ ĉ predicate : ĠEntity Predicate . Builder , Ċ ĉ body : ĠCondition . () Ġ-> ĠCondition Ġ= Ġ{ Ġthis Ġ}, Ċ ) Ġ= Ġhas Properties ( target , Ġpredicate ). body () Ċ Ċ /** Ċ Ġ* ĠCreates Ġa Ġ[ Lo ot Item Entity Property Condition ] Ġcondition . Ċ Ġ* Ċ Ġ* Ġ@ param Ġtarget Ġthe Ġentity Ġtargeted Ġby Ġthis Ġcondition . Ċ Ġ* Ġ@ author ĠThe Only T ails Ċ Ġ*/ Ċ @ Lo ot G ob lin Ċ fun Ġentity Present ( target : ĠL oot Context . Entity Target , Ġbody : ĠCondition . () Ġ-> ĠCondition Ġ= Ġ{ Ġthis Ġ}) Ġ= Ċ ĉ entity Present ( target ). body () Ċ Ċ /** Ċ Ġ* ĠCreates Ġa Ġ[ K illed By Player Condition ] Ġcondition . Ċ Ġ* Ċ Ġ* Ġ@ author ĠThe Only T ails Ċ Ġ*/ Ċ @ Lo ot G ob lin Ċ fun Ġkilled By Player ( body : ĠCondition . () Ġ-> ĠCondition Ġ= Ġ{ Ġthis Ġ}) Ġ= Ġkilled By Player (). body () Ċ Ċ /** Ċ Ġ* ĠCreates Ġa Ġ[ Block Property Condition ] Ġcondition . Ċ Ġ* Ċ Ġ* Ġ@ param Ġblock Ġthe Ġblock Ġof Ġthis Ġcondition . Ċ Ġ* Ġ@ author ĠThe Only T ails Ċ Ġ*/ Ċ @ Lo ot G ob lin Ċ fun Ġblock State Property ( Ċ ĉ block : ĠBlock , Ċ ĉ body : ĠBlock Property Condition . Builder . () Ġ-> ĠBlock Property Condition . Builder Ġ= Ġ{ Ġthis Ġ} Ċ ) Ġ= Ċ ĉ has BlockState Properties ( block ). body () Ċ Ċ /** Ċ Ġ* ĠCreates Ġa Ġ[ Match Tool ] Ġcondition . Ċ Ġ* Ċ Ġ* Ġ@ param Ġpredicate Ġthe Ġpredicate Ġthat Ġmatches Ġagainst Ġthe Ġtool Ġin Ġthis Ġcondition . Ċ Ġ* Ġ@ author ĠThe Only T ails Ċ Ġ*/ Ċ @ Lo ot G ob lin Ċ fun Ġmatch Tool ( predicate : ĠItem Predicate . Builder , Ġbody : ĠCondition . () Ġ-> ĠCondition Ġ= Ġ{ Ġthis Ġ}) Ġ= Ċ ĉ tool Matches ( predicate ). body () Ċ Ċ /** Ċ Ġ* ĠCreates Ġa Ġ[ Bonus Level Table Condition ] Ġcondition Ġthat Ġpasses Ġwith Ġprobability Ġpicked Ġfrom Ġtable , Ġindexed Ġby Ġen chant ment Ġlevel . Ċ Ġ* Ċ Ġ* Ġ@ param Ġen chant ment Ġthe Ġen chant ment Ġbeing Ġindexed Ġby . Ċ Ġ* Ġ@ param Ġch ances Ġthe Ġlist Ġof Ġch ances Ġfor Ġeach Ġen chant ment Ġlevel . Ċ Ġ* Ġ@ author ĠThe Only T ails Ċ Ġ*/ Ċ Ċ @ Lo ot G ob lin Ċ fun Ġtable Bonus ( Ċ ĉ ench ant ment : ĠEn chant ment , Ċ ĉ var arg Ġch ances : ĠFloat , Ċ ĉ body : ĠCondition . () Ġ-> ĠCondition Ġ= Ġ{ Ġthis Ġ}, Ċ ) Ġ= Ġbonus Level Flat Chance ( ench ant ment , Ġ* ch ances ). body () Ċ Ċ /** Ċ Ġ* ĠCreates Ġa Ġ[ Explo sion Condition ] Ġcondition . Ċ Ġ* Ċ Ġ* Ġ@ author ĠThe Only T ails Ċ Ġ*/ Ċ @ Lo ot G ob lin Ċ fun Ġsurv ives Explo sion ( body : ĠCondition . () Ġ-> ĠCondition Ġ= Ġ{ Ġthis Ġ}) Ġ= Ġsurv ives Explo sion (). body () Ċ Ċ /** Ċ Ġ* ĠCreates Ġa Ġ[ Damage Source Condition ] Ġcondition . Ċ Ġ* Ċ Ġ* Ġ@ param Ġpredicate Ġthe Ġ[ Damage Source Predicate ] Ġthat Ġthis Ġcondition Ġmatches Ġagainst . Ċ Ġ* Ġ@ author ĠThe Only T ails Ċ Ġ*/ Ċ @ Lo ot G ob lin Ċ fun Ġdamage Source Properties ( Ċ ĉ predicate : ĠDamage Source Predicate . Builder , Ċ ĉ body : ĠCondition . () Ġ-> ĠCondition Ġ= Ġ{ Ġthis Ġ}, Ċ ) Ġ= Ġhas Damage Source ( predicate ). body () Ċ Ċ /** Ċ Ġ* ĠCreates Ġa Ġ[ Location Check ] Ġcondition . Ċ Ġ* Ċ Ġ* Ġ@ param Ġpos Ġthe Ġposition Ġto Ġperform Ġthis Ġcheck Ġon . Ċ Ġ* Ġ@ param Ġpredicate Ġthe Ġ[ Location Predicate ] Ġthat Ġthis Ġcondition Ġmatches Ġagainst . Ċ Ġ* Ġ@ author ĠThe Only T ails Ċ Ġ*/ Ċ @ Lo ot G ob lin Ċ fun Ġlocation Check ( Ċ ĉ pos : ĠBlockPos Ġ= ĠBlockPos . ZERO , Ċ ĉ predicate : ĠLocation Predicate . Builder , Ċ ĉ body : ĠCondition . () Ġ-> ĠCondition Ġ= Ġ{ Ġthis Ġ}, Ċ ) Ġ= Ġcheck Location ( predicate , Ġpos ). body ()