Interface cleanup
Specifying public in an interface is redundant.
This commit is contained in:
parent
76b3c14499
commit
f5d02b2807
10 changed files with 49 additions and 46 deletions
|
@ -6,15 +6,15 @@ package WayofTime.bloodmagic.api.soul;
|
|||
*/
|
||||
public interface IDemonWillConduit
|
||||
{
|
||||
public int getWeight();
|
||||
int getWeight();
|
||||
|
||||
public double fillDemonWill(EnumDemonWillType type, double amount, boolean doFill);
|
||||
double fillDemonWill(EnumDemonWillType type, double amount, boolean doFill);
|
||||
|
||||
public double drainDemonWill(EnumDemonWillType type, double amount, boolean doDrain);
|
||||
double drainDemonWill(EnumDemonWillType type, double amount, boolean doDrain);
|
||||
|
||||
public boolean canFill(EnumDemonWillType type);
|
||||
boolean canFill(EnumDemonWillType type);
|
||||
|
||||
public boolean canDrain(EnumDemonWillType type);
|
||||
boolean canDrain(EnumDemonWillType type);
|
||||
|
||||
public double getCurrentWill(EnumDemonWillType type);
|
||||
double getCurrentWill(EnumDemonWillType type);
|
||||
}
|
||||
|
|
|
@ -5,7 +5,7 @@ import net.minecraft.item.ItemStack;
|
|||
public interface IDemonWillGem
|
||||
{
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @param willGemStack
|
||||
* - The ItemStack for this demon will gem.
|
||||
* @param willStack
|
||||
|
@ -13,20 +13,20 @@ public interface IDemonWillGem
|
|||
* @return - The remainder willStack after the will has been absorbed into
|
||||
* the gem. Return null if there is no will left in the stack.
|
||||
*/
|
||||
public ItemStack fillDemonWillGem(ItemStack willGemStack, ItemStack willStack);
|
||||
ItemStack fillDemonWillGem(ItemStack willGemStack, ItemStack willStack);
|
||||
|
||||
/**
|
||||
* Returns the number of souls that are left in the soul gem. Returns a
|
||||
* double because souls can be fractionally drained.
|
||||
*
|
||||
*
|
||||
*/
|
||||
public double getWill(EnumDemonWillType type, ItemStack willGemStack);
|
||||
double getWill(EnumDemonWillType type, ItemStack willGemStack);
|
||||
|
||||
public void setWill(EnumDemonWillType type, ItemStack willGemStack, double amount);
|
||||
void setWill(EnumDemonWillType type, ItemStack willGemStack, double amount);
|
||||
|
||||
public int getMaxWill(EnumDemonWillType type, ItemStack willGemStack);
|
||||
int getMaxWill(EnumDemonWillType type, ItemStack willGemStack);
|
||||
|
||||
public double drainWill(EnumDemonWillType type, ItemStack stack, double drainAmount);
|
||||
double drainWill(EnumDemonWillType type, ItemStack stack, double drainAmount);
|
||||
|
||||
public double fillWill(EnumDemonWillType type, ItemStack stack, double fillAmount);
|
||||
double fillWill(EnumDemonWillType type, ItemStack stack, double fillAmount);
|
||||
}
|
||||
|
|
|
@ -7,5 +7,5 @@ import net.minecraft.item.ItemStack;
|
|||
|
||||
public interface IDemonWillWeapon
|
||||
{
|
||||
public List<ItemStack> getRandomDemonWillDrop(EntityLivingBase killedEntity, EntityLivingBase attackingEntity, ItemStack stack, int looting);
|
||||
List<ItemStack> getRandomDemonWillDrop(EntityLivingBase killedEntity, EntityLivingBase attackingEntity, ItemStack stack, int looting);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue