Package com.nexomc.nexo.utils.drops
Class Drop
-
- All Implemented Interfaces:
public final class Drop
-
-
Field Summary
Fields Modifier and Type Field Description private final BooleanisEmptyprivate final DropexplosionDropsprivate final List<String>hierarchyprivate final List<Loot>lootsprivate final BooleanisSilktouchprivate final BooleanisFortuneprivate final StringsourceIDprivate final StringminimalTypeprivate final StringbestTool
-
Method Summary
Modifier and Type Method Description final BooleanisEmpty()final DropgetExplosionDrops()final List<String>getHierarchy()final List<Loot>getLoots()final BooleanisSilktouch()final BooleanisFortune()final StringgetSourceID()final StringgetMinimalType()final StringgetBestTool()final StringgetItemType(ItemStack itemInHand)final BooleancanDrop(ItemStack itemInHand)final BooleanisTypeEnough(ItemStack itemInHand)final BooleanisToolEnough(ItemStack itemInHand)final IntegergetDiff(ItemStack item)final List<DroppedLoot>spawns(Location location, ItemStack itemInHand)final UnitfurnitureSpawns(ItemDisplay baseEntity, ItemStack itemInHand)final IntegerfortuneMultiplier(ItemStack itemInHand)final List<DroppedLoot>dropLoot(List<Loot> loots, Location location, Integer fortuneMultiplier)final List<Loot>lootToDrop(Player player)Get the loots that will drop based on a given Player final static DropcreateDrop(List<String> toolTypes, ConfigurationSection dropSection, String sourceID)final static DropemptyDrop()final static DropemptyDrop(List<Loot> loots)-
-
Method Detail
-
getExplosionDrops
final Drop getExplosionDrops()
-
getHierarchy
final List<String> getHierarchy()
-
isSilktouch
final Boolean isSilktouch()
-
getSourceID
final String getSourceID()
-
getMinimalType
final String getMinimalType()
-
getBestTool
final String getBestTool()
-
getItemType
final String getItemType(ItemStack itemInHand)
-
isTypeEnough
final Boolean isTypeEnough(ItemStack itemInHand)
-
isToolEnough
final Boolean isToolEnough(ItemStack itemInHand)
-
spawns
final List<DroppedLoot> spawns(Location location, ItemStack itemInHand)
-
furnitureSpawns
final Unit furnitureSpawns(ItemDisplay baseEntity, ItemStack itemInHand)
-
fortuneMultiplier
final Integer fortuneMultiplier(ItemStack itemInHand)
-
dropLoot
final List<DroppedLoot> dropLoot(List<Loot> loots, Location location, Integer fortuneMultiplier)
-
lootToDrop
final List<Loot> lootToDrop(Player player)
Get the loots that will drop based on a given Player
- Parameters:
player- the player that triggered this drop- Returns:
the loots that will drop
-
createDrop
final static Drop createDrop(List<String> toolTypes, ConfigurationSection dropSection, String sourceID)
-
-
-
-