RuneHive-Tarnish
Neural OSRS Enhancement Framework
Loading...
Searching...
No Matches
SwingAcrossCableInteraction.java
1package com.osroyale.content.skill.impl.agility.obstacle.impl;
2
3import com.osroyale.content.skill.impl.agility.obstacle.ObstacleInteraction;
4import com.osroyale.game.Animation;
5import com.osroyale.game.task.Task;
6import com.osroyale.game.world.World;
7import com.osroyale.game.world.entity.mob.player.Player;
8import com.osroyale.game.world.position.Position;
9
10public interface SwingAcrossCableInteraction extends ObstacleInteraction {
11 @Override
12 default void start(Player player) {
13 }
14
15 @Override
16 default void onExecution(Player player, Position start, Position end) {
17 World.schedule(new Task(1) {
18
19 @Override
20 public void execute() {
21 player.animate(new Animation(getAnimation()));
22 }
23 });
24 }
25
26 @Override
27 default void onCancellation(Player player) {
28 }
29}