Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package disconsented.anssrpg.data;
- /**
- * @author James
- * Handles storing the information for each skill
- * Types:
- * 1 - Block breaking (OnBreakEvent)
- * 2 - Entity killing (onEntityDeath), not blocked
- * 3 - Crafting (onPlayerOpenContainer and onItemCraftedEvent) for blocking and exp respectivley
- */
- import java.util.ArrayList;
- import net.minecraft.block.Block;
- import net.minecraft.entity.Entity;
- import net.minecraft.item.Item;
- public class SkillObject {
- public String name;
- public byte type; //Handles the skill type block breaking[1](onBreakEvent), Entity Damaging[2](), Crafting[3](ItemCraftedEvent),
- public ArrayList exp, req = new ArrayList();
- public ArrayList<Item> itemName = new ArrayList<Item>();
- public ArrayList<Block> blockName = new ArrayList<Block>();
- public ArrayList<Entity> entityName = new ArrayList<Entity>();
- /**
- *
- * @param exp
- * @param req
- * @param name
- * @param itemName
- * @param type
- */
- public SkillObject (ArrayList exp, ArrayList req, String name, ArrayList itemName, byte type) {
- this.exp = exp;
- this.req = req;
- this.name = name;
- this.itemName = itemName;
- this.type = type;
- }
- public SkillObject (ArrayList exp, ArrayList req, String name, ArrayList blockName, byte type) {
- this.exp = exp;
- this.req = req;
- this.name = name;
- this.blockName = blockName;
- this.type = type;
- }
- public SkillObject (ArrayList exp, ArrayList req, String name, ArrayList entityName, byte type) {
- this.exp = exp;
- this.req = req;
- this.name = name;
- this.entityName = entityName;
- this.type = type;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment