public final class WildStackerAPI
extends java.lang.Object
Constructor and Description |
---|
WildStackerAPI() |
Modifier and Type | Method and Description |
---|---|
static int |
getBarrelAmount(org.bukkit.block.Block block)
Get a stacked-amount for a barrel.
|
static int |
getEntityAmount(org.bukkit.entity.LivingEntity livingEntity)
Get a stacked-amount for an entity.
|
static int |
getItemAmount(org.bukkit.entity.Item item)
Get a stacked-amount for an item.
|
static LootTable |
getLootTable(org.bukkit.entity.LivingEntity livingEntity)
Returns the loot loot of an entity.
|
static int |
getSpawnersAmount(org.bukkit.block.CreatureSpawner spawner)
Get a stacked-amount for a spawner.
|
static StackedBarrel |
getStackedBarrel(org.bukkit.block.Block block)
Get a stacked-barrel object for a block.
|
static StackedEntity |
getStackedEntity(org.bukkit.entity.LivingEntity livingEntity)
Get a stacked-entity object for a living entity.
|
static StackedItem |
getStackedItem(org.bukkit.entity.Item item)
Get a stacked-item object for an item.
|
static StackedSpawner |
getStackedSpawner(org.bukkit.block.CreatureSpawner spawner)
Get a stacked-spawner object for a spawner.
|
static WildStacker |
getWildStacker()
Get the wildstacker object.
|
static org.bukkit.entity.Entity |
spawnEntityWithoutStacking(org.bukkit.Location location,
org.bukkit.entity.EntityType type)
This method will spawn an entity without stacking it to another entity.
|
public static StackedItem getStackedItem(org.bukkit.entity.Item item)
item
- an item to checkpublic static int getItemAmount(org.bukkit.entity.Item item)
item
- an item to checkpublic static StackedEntity getStackedEntity(org.bukkit.entity.LivingEntity livingEntity)
livingEntity
- a living-entity to checkpublic static int getEntityAmount(org.bukkit.entity.LivingEntity livingEntity)
livingEntity
- an entity to checkpublic static StackedSpawner getStackedSpawner(org.bukkit.block.CreatureSpawner spawner)
spawner
- a spawner to checkpublic static int getSpawnersAmount(org.bukkit.block.CreatureSpawner spawner)
spawner
- a spawner to checkpublic static StackedBarrel getStackedBarrel(org.bukkit.block.Block block)
block
- a block to checkpublic static int getBarrelAmount(org.bukkit.block.Block block)
block
- a barrel to checkpublic static org.bukkit.entity.Entity spawnEntityWithoutStacking(org.bukkit.Location location, org.bukkit.entity.EntityType type)
location
- location to spawn the entity intype
- type of entity to spawnpublic static LootTable getLootTable(org.bukkit.entity.LivingEntity livingEntity)
livingEntity
- An entity to checkpublic static WildStacker getWildStacker()