mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-25 14:34:22 +00:00
1.5.1
This commit is contained in:
1 parent
5f73c2152e
commit
9637de4acd
23 files changed
+1800
-496
No files matched your search
@@ -12,7 +12,8 @@ import net.minecraft.world.World;
|
||||
*/
|
||||
|
||||
public abstract class Skill
|
||||
{
|
||||
{
|
||||
public int skillID;
|
||||
boolean active = true;
|
||||
public abstract String getTextureFile(int guiscale);
|
||||
public abstract String getSkillName();
|
||||
@@ -34,6 +35,11 @@ public abstract class Skill
|
||||
return 0;
|
||||
}
|
||||
|
||||
public void setActive(boolean flag)
|
||||
{
|
||||
this.active = flag;
|
||||
}
|
||||
|
||||
public boolean getActive()
|
||||
{
|
||||
return active;
|
||||
@@ -41,9 +47,21 @@ public abstract class Skill
|
||||
|
||||
public Skill copy() throws InstantiationException, IllegalAccessException
|
||||
{
|
||||
return this.getClass().newInstance();
|
||||
Skill skill = this.getClass().newInstance();
|
||||
skill.setSkillID(this.skillID);
|
||||
return skill;
|
||||
}
|
||||
|
||||
public void setSkillID(int i)
|
||||
{
|
||||
skillID = i;
|
||||
}
|
||||
|
||||
public int getSkillID ()
|
||||
{
|
||||
return skillID;
|
||||
}
|
||||
|
||||
/* Save/Load */
|
||||
public void saveToNBT (NBTTagCompound tag)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user