Class LootContext.Builder
java.lang.Object
com.github.darksoulq.abyssallib.world.data.loot.LootContext.Builder
- Enclosing class:
LootContext
Builder class for constructing
LootContext instances.-
Constructor Details
-
Builder
public Builder(org.bukkit.Location location) - Parameters:
location- The world location.
-
-
Method Details
-
looter
- Parameters:
looter- The entity collecting loot. @return This builder.
-
killer
- Parameters:
killer- The attacker entity. @return This builder.
-
victim
- Parameters:
victim- The slain entity. @return This builder.
-
tool
- Parameters:
tool- The tool stack. @return This builder.
-
luck
- Parameters:
luck- Manual luck value. @return This builder.
-
random
- Parameters:
random- Custom random source. @return This builder.
-
build
- Returns:
- A new
LootContextinstance.
-