Advertisement
Guest User

Untitled

a guest
Sep 30th, 2016
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.85 KB | None | 0 0
  1. public abstract class CustomEnchant {
  2.    
  3.     /*
  4.      * Main class that represents any CustomEnchant
  5.      * Method documentation is commented out with comments
  6.      */
  7.    
  8.     private int level;
  9.    
  10.     public CustomEnchant(int level) {
  11.         this.level = level;
  12.     }
  13.    
  14.     public abstract String getName();  //RETURNS THE NAME OF THE ENCHANT
  15.    
  16.     public abstract EnchantType getEnchantType();  //RETURNS ENCHANT TYPE (SEE THE ENCHANTTYPE ENUMERATION)
  17.    
  18.     public abstract EnchantRarirty getEnchantRarity(); //RETURNS COMMON,UNCOMMON,OR RARE
  19.    
  20.     public abstract String getLore();  //RETURNS THE LORE THAT WILL BE ADDED TO THE ITEM THAT IS ENCHANTED (COLOR CODE SUPPORT)
  21.    
  22.     public abstract String getDescription();  //JUST A PLAIN SIMPLE DESCRIPTION OF THE ENCHANT.
  23.    
  24.     public int getLevel() {
  25.         return level;
  26.     }
  27.     public void setLevel(int level) {
  28.         this.level = level;
  29.     }
  30.    
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement