mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-20 04:09:40 +00:00
30 lines
623 B
Java
30 lines
623 B
Java
package tconstruct.skill;
|
|
|
|
import net.minecraft.entity.Entity;
|
|
import net.minecraft.util.ResourceLocation;
|
|
import net.minecraft.world.World;
|
|
|
|
public class Jump extends Skill
|
|
{
|
|
private static final ResourceLocation three = new ResourceLocation("tinker", "textures/skill/Jump48x.png");
|
|
@Override
|
|
public ResourceLocation getResource (int guiscale)
|
|
{
|
|
return three;
|
|
}
|
|
|
|
@Override
|
|
public String getSkillName ()
|
|
{
|
|
return "Jump";
|
|
}
|
|
|
|
@Override
|
|
public void activate (Entity entity, World world)
|
|
{
|
|
if (entity.onGround)
|
|
entity.motionY = 0.8f;
|
|
}
|
|
|
|
}
|