mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-13 08:54:12 +00:00
33 lines
739 B
Java
33 lines
739 B
Java
package tconstruct.skill;
|
|||
|
|
|
||
|
|
import net.minecraft.entity.Entity;
|
||
|
|
import net.minecraft.world.World;
|
||
|
|
|
||
|
|
public class Jump extends Skill
|
||
|
|
{
|
||
|
|
@Override
|
||
|
|
public String getTextureFile (int guiscale)
|
||
|
|
{
|
||
|
|
/*if (guiscale == 2)
|
||
|
|
return "/mods/tinker/textures/skill/Jump32x.png";
|
||
|
|
if (guiscale == 3)
|
||
|
|
return "/mods/tinker/textures/skill/Jump48x.png";
|
||
|
|
|
||
|
|
return "/mods/tinker/textures/skill/Jump16x.png";*/
|
||
|
|
return "/mods/tinker/textures/skill/Jump48x.png";
|
||
|
|
}
|
||
|
|
|
||
|
|
@Override
|
||
|
|
public String getSkillName ()
|
||
|
|
{
|
||
|
|
return "Jump";
|
||
|
|
}
|
||
|
|
|
||
|
|
@Override
|
||
|
|
public void activate (Entity entity, World world)
|
||
|
|
{
|
||
|
|
if (entity.onGround)
|
||
|
|
entity.motionY = 0.8f;
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|