mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-20 04:09:40 +00:00
1.6.2 test - Finished liquids, added connected textures on glass
This commit is contained in:
1 parent
40c6f445a2
commit
a80fcbce86
704 files changed
+60909
No files matched your search
@@ -0,0 +1,78 @@
|
||||
package tconstruct.skill;
|
||||
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
/* Base skill
|
||||
*
|
||||
*/
|
||||
|
||||
public abstract class Skill
|
||||
{
|
||||
public int skillID;
|
||||
boolean active = true;
|
||||
|
||||
public abstract String getTextureFile (int guiscale);
|
||||
|
||||
public abstract String getSkillName ();
|
||||
|
||||
public abstract void activate (Entity entity, World world);
|
||||
|
||||
public void rightClickActivate (Entity entity, World world)
|
||||
{
|
||||
};
|
||||
|
||||
public int chargeTime () //Ticks
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
public boolean canEntityUseSkill (Entity entity)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public int getSkillCost ()
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
public void setActive (boolean flag)
|
||||
{
|
||||
this.active = flag;
|
||||
}
|
||||
|
||||
public boolean getActive ()
|
||||
{
|
||||
return active;
|
||||
}
|
||||
|
||||
public Skill copy () throws InstantiationException, IllegalAccessException
|
||||
{
|
||||
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)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public void readFromNBT (NBTTagCompound tag)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user