Disconsented

Untitled

Jun 18th, 2014
267
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.59 KB | None | 0 0
  1. package disconsented.anssrpg.data;
  2. /**
  3.  * @author James
  4.  * Handles storing the information for each skill
  5.  * Types:
  6.  * 1 - Block breaking (OnBreakEvent)
  7.  * 2 - Entity killing (onEntityDeath), not blocked
  8.  * 3 - Crafting (onPlayerOpenContainer and onItemCraftedEvent) for blocking and exp respectivley
  9.  */
  10.  
  11. import java.util.ArrayList;
  12.  
  13. import net.minecraft.block.Block;
  14. import net.minecraft.entity.Entity;
  15. import net.minecraft.item.Item;
  16.  
  17. public class SkillObject {
  18.    
  19.     public String name;
  20.    
  21.     public byte type; //Handles the skill type block breaking[1](onBreakEvent), Entity Damaging[2](), Crafting[3](ItemCraftedEvent),  
  22.     public ArrayList exp, req = new ArrayList();
  23.     public ArrayList<Item> itemName = new ArrayList<Item>();
  24.     public ArrayList<Block> blockName = new ArrayList<Block>();
  25.     public ArrayList<Entity> entityName = new ArrayList<Entity>();
  26.     /**
  27.      *
  28.      * @param exp
  29.      * @param req
  30.      * @param name
  31.      * @param itemName
  32.      * @param type
  33.      */
  34.     public SkillObject (ArrayList exp, ArrayList req, String name, ArrayList itemName, byte type) {
  35.         this.exp = exp;
  36.         this.req = req;
  37.         this.name = name;
  38.         this.itemName = itemName;
  39.         this.type = type;
  40.     }
  41.     public SkillObject (ArrayList exp, ArrayList req, String name, ArrayList blockName, byte type) {
  42.         this.exp = exp;
  43.         this.req = req;
  44.         this.name = name;
  45.         this.blockName = blockName;
  46.         this.type = type;
  47.     }
  48.     public SkillObject (ArrayList exp, ArrayList req, String name, ArrayList entityName, byte type) {
  49.         this.exp = exp;
  50.         this.req = req;
  51.         this.name = name;
  52.         this.entityName = entityName;
  53.         this.type = type;
  54.     }
  55.    
  56.  
  57. }
Advertisement
Add Comment
Please, Sign In to add comment