Advertisement
Creepinson

Untitled

Jul 27th, 2017
347
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. package me.creepinson.meepar;
  2.  
  3. import net.minecraft.util.IStringSerializable;
  4.  
  5. /**
  6. * Created by theo on 7/26/17.
  7. */
  8. public class EnumHandler {
  9.  
  10. public static enum Tiers implements IStringSerializable {
  11. TIER1("tier1", 0),
  12. TIER2("tier2", 1);
  13.  
  14. private int id;
  15. private String name;
  16.  
  17. private Tiers(String name, int id){
  18.  
  19. this.name = name;
  20. this.id = id;
  21.  
  22.  
  23. }
  24.  
  25. @Override
  26. public String getName() {
  27. return this.name;
  28. }
  29.  
  30. public int getId() {
  31. return id;
  32. }
  33.  
  34. @Override
  35. public String toString() {
  36. return getName();
  37. }
  38. }
  39.  
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement