mirror of
https://github.com/SimplexDevelopment/ArcanumOcculta.git
synced 2025-07-15 02:58:34 +00:00
API completed, Implementation required (#1)
New API, ready to go. Implementations required.
This commit is contained in:
@ -0,0 +1,69 @@
|
||||
package app.simplexdev.arcanumocculta.api.wand;
|
||||
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
|
||||
public abstract class AbstractWand implements Wand
|
||||
{
|
||||
private final ItemStack item;
|
||||
private final CapType capType;
|
||||
private final CoreType coreType;
|
||||
private final GemType gemType;
|
||||
private final String name;
|
||||
private final String description;
|
||||
|
||||
protected AbstractWand(String name,
|
||||
String description, ItemStack item, CapType capType,
|
||||
CoreType coreType, GemType gemType)
|
||||
{
|
||||
this.name = name;
|
||||
this.description = description;
|
||||
this.item = item;
|
||||
this.capType = capType;
|
||||
this.coreType = coreType;
|
||||
this.gemType = gemType;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getDescription()
|
||||
{
|
||||
return description;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ItemStack getItem()
|
||||
{
|
||||
return item;
|
||||
}
|
||||
|
||||
@Override
|
||||
public double getSpellBonus()
|
||||
{
|
||||
return getCapType().getSpellBoost()
|
||||
+ getCoreType().getSpellBoost()
|
||||
+ getGemType().getSpellBoost();
|
||||
}
|
||||
|
||||
@Override
|
||||
public CapType getCapType()
|
||||
{
|
||||
return capType;
|
||||
}
|
||||
|
||||
@Override
|
||||
public CoreType getCoreType()
|
||||
{
|
||||
return coreType;
|
||||
}
|
||||
|
||||
@Override
|
||||
public GemType getGemType()
|
||||
{
|
||||
return gemType;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user