Swap the API packages

The new one is now built for the api jar and the old one is now internal.
It will slowly be moved around to sane places within the internal code. Most
of the features provided in the old "api" are addon specific features which
will generally rely on the main jar anyways. The new API will be specific
to compatibility features, such as blacklists, recipes, and value modification.
This commit is contained in:
Nicholas Ignoffo 2018-02-05 17:04:38 -08:00
parent 4fbcac6aa2
commit ddaadfbe52
421 changed files with 1006 additions and 999 deletions

View file

@ -0,0 +1,50 @@
package WayofTime.bloodmagic.apibutnotreally.event;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraftforge.fml.common.eventhandler.Cancelable;
import net.minecraftforge.fml.common.eventhandler.Event;
public class BoundToolEvent extends Event {
public EntityPlayer player;
public BoundToolEvent(EntityPlayer player) {
this.player = player;
}
/**
* This event is called when a
* {@link WayofTime.bloodmagic.item.ItemBoundTool} is being charged.
* <p>
* If canceled, will result in the charging being canceled.
*/
@Cancelable
public static class Charge extends BoundToolEvent {
public ItemStack result;
public Charge(EntityPlayer player, ItemStack result) {
super(player);
this.result = result;
}
}
/**
* This event is called when a
* {@link WayofTime.bloodmagic.item.ItemBoundTool}'s charge is released.
* <p>
* If canceled, will result in the charge not being released.
*/
@Cancelable
public static class Release extends BoundToolEvent {
public final ItemStack boundTool;
public int charge;
public Release(EntityPlayer player, ItemStack boundTool, int charge) {
super(player);
this.boundTool = boundTool;
this.charge = charge;
}
}
}