Repository reorganisation

Unified kotlin and java into just src/main
Unified the rs09 and core packages
Took all content out of the core package, and placed it into the new content package
Reorganised all source code relating to content to be easier to find and explore
This commit is contained in:
Ceikry
2023-01-26 13:59:28 +00:00
committed by Ryan
parent e4b799c44a
commit a100affda2
3156 changed files with 24205 additions and 30585 deletions
@@ -0,0 +1,53 @@
package content.global.skill.slayer;
import core.game.node.entity.combat.BattleState;
import core.game.node.entity.combat.CombatSwingHandler;
import core.game.node.entity.npc.AbstractNPC;
import core.game.world.map.Location;
import core.plugin.Initializable;
/**
* Handles the basilisk npc.
* @author Vexia
*/
@Initializable
public final class BasiliskNPC extends AbstractNPC {
/**
* Constructs a new {@code BasiliskNPC} {@code Object}.
*/
public BasiliskNPC() {
super(0, null);
}
/**
* Constructs a new {@code BasiliskNPC} {@code Object}.
* @param id the id.
* @param location the location.
*/
public BasiliskNPC(int id, Location location) {
super(id, location);
}
@Override
public AbstractNPC construct(int id, Location location, Object... objects) {
return new BasiliskNPC(id, location);
}
@Override
public CombatSwingHandler getSwingHandler(boolean swing) {
return MirrorShieldHandler.SINGLETON;
}
@Override
public void checkImpact(BattleState state) {
super.checkImpact(state);
MirrorShieldHandler.SINGLETON.checkImpact(state);
}
@Override
public int[] getIds() {
return new int[] { 1616, 1617 };
}
}