Class Profession

java.lang.Object
cn.nukkit.entity.data.profession.Profession
Direct Known Subclasses:
ProfessionArmor, ProfessionButcher, ProfessionCartographer, ProfessionCleric, ProfessionFarmer, ProfessionFisherman, ProfessionFletcher, ProfessionLeather, ProfessionLibrarian, ProfessionMason, ProfessionShepherd, ProfessionTool, ProfessionWeapon

public abstract class Profession extends Object
  • Constructor Details

    • Profession

      public Profession(int index, int blockid, String name)
  • Method Details

    • registerProfession

      public static void registerProfession(Profession profession)
    • getProfessions

      public static HashMap<Integer,Profession> getProfessions()
    • getProfession

      public static Profession getProfession(int index)
    • buildTrades

      public ListTag<Tag> buildTrades(int seed)
    • init

      @PowerNukkitXInternal public static void init()
    • getBlockID

      public int getBlockID()
    • getIndex

      public int getIndex()
    • getName

      public String getName()