Implement JumpPowerSupplier metadata
This commit is contained in:
parent
2736f4ab53
commit
1a8246bb88
|
@ -469,6 +469,16 @@ public class NMS {
|
|||
return BRIDGE.getHorizontalMovement(bukkitEntity);
|
||||
}
|
||||
|
||||
public static float getJumpPower(NPC npc, float original) {
|
||||
if (npc == null)
|
||||
return original;
|
||||
if (npc.data().has(NPC.Metadata.JUMP_POWER_SUPPLIER)) {
|
||||
return npc.data().<Function<NPC, Float>> get(NPC.Metadata.JUMP_POWER_SUPPLIER).apply(npc);
|
||||
}
|
||||
|
||||
return original;
|
||||
}
|
||||
|
||||
public static Method getMethod(Class<?> clazz, String method, boolean log, Class<?>... params) {
|
||||
if (clazz == null)
|
||||
return null;
|
||||
|
|
|
@ -86,6 +86,11 @@ public class BatController extends MobEntityController {
|
|||
return NMSImpl.getSoundEffect(npc, super.bW(), NPC.Metadata.HURT_SOUND);
|
||||
}
|
||||
|
||||
@Override
|
||||
public float ck() {
|
||||
return NMS.getJumpPower(npc, super.ck());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void collide(net.minecraft.server.v1_10_R1.Entity entity) {
|
||||
// this method is called by both the entities involved - cancelling
|
||||
|
|
|
@ -83,6 +83,11 @@ public class BlazeController extends MobEntityController {
|
|||
return NMSImpl.getSoundEffect(npc, super.bW(), NPC.Metadata.HURT_SOUND);
|
||||
}
|
||||
|
||||
@Override
|
||||
public float ck() {
|
||||
return NMS.getJumpPower(npc, super.ck());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void collide(net.minecraft.server.v1_10_R1.Entity entity) {
|
||||
// this method is called by both the entities involved - cancelling
|
||||
|
|
|
@ -92,6 +92,11 @@ public class CaveSpiderController extends MobEntityController {
|
|||
return NMSImpl.getSoundEffect(npc, super.bW(), NPC.Metadata.HURT_SOUND);
|
||||
}
|
||||
|
||||
@Override
|
||||
public float ck() {
|
||||
return NMS.getJumpPower(npc, super.ck());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void collide(net.minecraft.server.v1_10_R1.Entity entity) {
|
||||
// this method is called by both the entities involved - cancelling
|
||||
|
|
|
@ -101,6 +101,11 @@ public class ChickenController extends MobEntityController {
|
|||
return NMSImpl.getSoundEffect(npc, super.bW(), NPC.Metadata.HURT_SOUND);
|
||||
}
|
||||
|
||||
@Override
|
||||
public float ck() {
|
||||
return NMS.getJumpPower(npc, super.ck());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void collide(net.minecraft.server.v1_10_R1.Entity entity) {
|
||||
// this method is called by both the entities involved - cancelling
|
||||
|
|
|
@ -116,6 +116,11 @@ public class CowController extends MobEntityController {
|
|||
return NMSImpl.getSoundEffect(npc, super.bW(), NPC.Metadata.HURT_SOUND);
|
||||
}
|
||||
|
||||
@Override
|
||||
public float ck() {
|
||||
return NMS.getJumpPower(npc, super.ck());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void collide(net.minecraft.server.v1_10_R1.Entity entity) {
|
||||
// this method is called by both the entities involved - cancelling
|
||||
|
|
|
@ -103,6 +103,11 @@ public class CreeperController extends MobEntityController {
|
|||
return NMSImpl.getSoundEffect(npc, super.bW(), NPC.Metadata.HURT_SOUND);
|
||||
}
|
||||
|
||||
@Override
|
||||
public float ck() {
|
||||
return NMS.getJumpPower(npc, super.ck());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void collide(net.minecraft.server.v1_10_R1.Entity entity) {
|
||||
// this method is called by both the entities involved - cancelling
|
||||
|
|
|
@ -89,6 +89,11 @@ public class EnderDragonController extends MobEntityController {
|
|||
return NMSImpl.getSoundEffect(npc, super.bW(), NPC.Metadata.HURT_SOUND);
|
||||
}
|
||||
|
||||
@Override
|
||||
public float ck() {
|
||||
return NMS.getJumpPower(npc, super.ck());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void collide(net.minecraft.server.v1_10_R1.Entity entity) {
|
||||
// this method is called by both the entities involved - cancelling
|
||||
|
|
|
@ -92,6 +92,11 @@ public class EndermanController extends MobEntityController {
|
|||
return NMSImpl.getSoundEffect(npc, super.bW(), NPC.Metadata.HURT_SOUND);
|
||||
}
|
||||
|
||||
@Override
|
||||
public float ck() {
|
||||
return NMS.getJumpPower(npc, super.ck());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void collide(net.minecraft.server.v1_10_R1.Entity entity) {
|
||||
// this method is called by both the entities involved - cancelling
|
||||
|
|
|
@ -92,6 +92,11 @@ public class EndermiteController extends MobEntityController {
|
|||
return NMSImpl.getSoundEffect(npc, super.bW(), NPC.Metadata.HURT_SOUND);
|
||||
}
|
||||
|
||||
@Override
|
||||
public float ck() {
|
||||
return NMS.getJumpPower(npc, super.ck());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void collide(net.minecraft.server.v1_10_R1.Entity entity) {
|
||||
// this method is called by both the entities involved - cancelling
|
||||
|
|
|
@ -69,6 +69,11 @@ public class GhastController extends MobEntityController {
|
|||
return NMSImpl.getSoundEffect(npc, super.bW(), NPC.Metadata.HURT_SOUND);
|
||||
}
|
||||
|
||||
@Override
|
||||
public float ck() {
|
||||
return NMS.getJumpPower(npc, super.ck());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void collide(net.minecraft.server.v1_10_R1.Entity entity) {
|
||||
// this method is called by both the entities involved - cancelling
|
||||
|
|
|
@ -78,6 +78,11 @@ public class GiantController extends MobEntityController {
|
|||
return NMSImpl.getSoundEffect(npc, super.bW(), NPC.Metadata.HURT_SOUND);
|
||||
}
|
||||
|
||||
@Override
|
||||
public float ck() {
|
||||
return NMS.getJumpPower(npc, super.ck());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void collide(net.minecraft.server.v1_10_R1.Entity entity) {
|
||||
// this method is called by both the entities involved - cancelling
|
||||
|
|
|
@ -78,6 +78,11 @@ public class GuardianController extends MobEntityController {
|
|||
return NMSImpl.getSoundEffect(npc, super.bW(), NPC.Metadata.HURT_SOUND);
|
||||
}
|
||||
|
||||
@Override
|
||||
public float ck() {
|
||||
return NMS.getJumpPower(npc, super.ck());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void collide(net.minecraft.server.v1_10_R1.Entity entity) {
|
||||
// this method is called by both the entities involved - cancelling
|
||||
|
|
|
@ -47,9 +47,9 @@ public class HorseController extends MobEntityController {
|
|||
|
||||
public static class EntityHorseNPC extends EntityHorse implements NPCHolder {
|
||||
private double baseMovementSpeed;
|
||||
|
||||
private final CitizensNPC npc;
|
||||
private boolean riding;
|
||||
|
||||
public EntityHorseNPC(World world) {
|
||||
this(world, null);
|
||||
}
|
||||
|
@ -105,6 +105,11 @@ public class HorseController extends MobEntityController {
|
|||
return NMSImpl.getSoundEffect(npc, super.bW(), NPC.Metadata.HURT_SOUND);
|
||||
}
|
||||
|
||||
@Override
|
||||
public float ck() {
|
||||
return NMS.getJumpPower(npc, super.ck());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void collide(net.minecraft.server.v1_10_R1.Entity entity) {
|
||||
// this method is called by both the entities involved - cancelling
|
||||
|
|
|
@ -78,6 +78,11 @@ public class IronGolemController extends MobEntityController {
|
|||
return NMSImpl.getSoundEffect(npc, super.bW(), NPC.Metadata.HURT_SOUND);
|
||||
}
|
||||
|
||||
@Override
|
||||
public float ck() {
|
||||
return NMS.getJumpPower(npc, super.ck());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void collide(net.minecraft.server.v1_10_R1.Entity entity) {
|
||||
// this method is called by both the entities involved - cancelling
|
||||
|
|
|
@ -84,6 +84,11 @@ public class MagmaCubeController extends MobEntityController {
|
|||
return NMSImpl.getSoundEffect(npc, super.bW(), NPC.Metadata.HURT_SOUND);
|
||||
}
|
||||
|
||||
@Override
|
||||
public float ck() {
|
||||
return NMS.getJumpPower(npc, super.ck());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void collide(net.minecraft.server.v1_10_R1.Entity entity) {
|
||||
// this method is called by both the entities involved - cancelling
|
||||
|
|
|
@ -97,6 +97,11 @@ public class MushroomCowController extends MobEntityController {
|
|||
return NMSImpl.getSoundEffect(npc, super.bW(), NPC.Metadata.HURT_SOUND);
|
||||
}
|
||||
|
||||
@Override
|
||||
public float ck() {
|
||||
return NMS.getJumpPower(npc, super.ck());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void collide(net.minecraft.server.v1_10_R1.Entity entity) {
|
||||
// this method is called by both the entities involved - cancelling
|
||||
|
|
|
@ -87,6 +87,11 @@ public class OcelotController extends MobEntityController {
|
|||
return NMSImpl.getSoundEffect(npc, super.bW(), NPC.Metadata.HURT_SOUND);
|
||||
}
|
||||
|
||||
@Override
|
||||
public float ck() {
|
||||
return NMS.getJumpPower(npc, super.ck());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void collide(net.minecraft.server.v1_10_R1.Entity entity) {
|
||||
// this method is called by both the entities involved - cancelling
|
||||
|
|
|
@ -88,6 +88,11 @@ public class PigController extends MobEntityController {
|
|||
return NMSImpl.getSoundEffect(npc, super.bW(), NPC.Metadata.HURT_SOUND);
|
||||
}
|
||||
|
||||
@Override
|
||||
public float ck() {
|
||||
return NMS.getJumpPower(npc, super.ck());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void collide(net.minecraft.server.v1_10_R1.Entity entity) {
|
||||
// this method is called by both the entities involved - cancelling
|
||||
|
|
|
@ -78,6 +78,11 @@ public class PigZombieController extends MobEntityController {
|
|||
return NMSImpl.getSoundEffect(npc, super.bW(), NPC.Metadata.HURT_SOUND);
|
||||
}
|
||||
|
||||
@Override
|
||||
public float ck() {
|
||||
return NMS.getJumpPower(npc, super.ck());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void collide(net.minecraft.server.v1_10_R1.Entity entity) {
|
||||
// this method is called by both the entities involved - cancelling
|
||||
|
|
|
@ -78,6 +78,11 @@ public class PolarBearController extends MobEntityController {
|
|||
return NMSImpl.getSoundEffect(npc, super.bW(), NPC.Metadata.HURT_SOUND);
|
||||
}
|
||||
|
||||
@Override
|
||||
public float ck() {
|
||||
return NMS.getJumpPower(npc, super.ck());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void collide(net.minecraft.server.v1_10_R1.Entity entity) {
|
||||
// this method is called by both the entities involved - cancelling
|
||||
|
|
|
@ -88,6 +88,11 @@ public class RabbitController extends MobEntityController {
|
|||
return NMSImpl.getSoundEffect(npc, super.bW(), NPC.Metadata.HURT_SOUND);
|
||||
}
|
||||
|
||||
@Override
|
||||
public float ck() {
|
||||
return NMS.getJumpPower(npc, super.ck());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void collide(net.minecraft.server.v1_10_R1.Entity entity) {
|
||||
// this method is called by both the entities involved - cancelling
|
||||
|
|
|
@ -87,6 +87,11 @@ public class SheepController extends MobEntityController {
|
|||
return NMSImpl.getSoundEffect(npc, super.bW(), NPC.Metadata.HURT_SOUND);
|
||||
}
|
||||
|
||||
@Override
|
||||
public float ck() {
|
||||
return NMS.getJumpPower(npc, super.ck());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void collide(net.minecraft.server.v1_10_R1.Entity entity) {
|
||||
// this method is called by both the entities involved - cancelling
|
||||
|
|
|
@ -79,6 +79,11 @@ public class ShulkerController extends MobEntityController {
|
|||
return NMSImpl.getSoundEffect(npc, super.bW(), NPC.Metadata.HURT_SOUND);
|
||||
}
|
||||
|
||||
@Override
|
||||
public float ck() {
|
||||
return NMS.getJumpPower(npc, super.ck());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void collide(net.minecraft.server.v1_10_R1.Entity entity) {
|
||||
// this method is called by both the entities involved - cancelling
|
||||
|
|
|
@ -78,6 +78,11 @@ public class SilverfishController extends MobEntityController {
|
|||
return NMSImpl.getSoundEffect(npc, super.bW(), NPC.Metadata.HURT_SOUND);
|
||||
}
|
||||
|
||||
@Override
|
||||
public float ck() {
|
||||
return NMS.getJumpPower(npc, super.ck());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void collide(net.minecraft.server.v1_10_R1.Entity entity) {
|
||||
// this method is called by both the entities involved - cancelling
|
||||
|
|
|
@ -78,6 +78,11 @@ public class SkeletonController extends MobEntityController {
|
|||
return NMSImpl.getSoundEffect(npc, super.bW(), NPC.Metadata.HURT_SOUND);
|
||||
}
|
||||
|
||||
@Override
|
||||
public float ck() {
|
||||
return NMS.getJumpPower(npc, super.ck());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void collide(net.minecraft.server.v1_10_R1.Entity entity) {
|
||||
// this method is called by both the entities involved - cancelling
|
||||
|
|
|
@ -84,6 +84,11 @@ public class SlimeController extends MobEntityController {
|
|||
return NMSImpl.getSoundEffect(npc, super.bW(), NPC.Metadata.HURT_SOUND);
|
||||
}
|
||||
|
||||
@Override
|
||||
public float ck() {
|
||||
return NMS.getJumpPower(npc, super.ck());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void collide(net.minecraft.server.v1_10_R1.Entity entity) {
|
||||
// this method is called by both the entities involved - cancelling
|
||||
|
|
|
@ -78,6 +78,11 @@ public class SnowmanController extends MobEntityController {
|
|||
return NMSImpl.getSoundEffect(npc, super.bW(), NPC.Metadata.HURT_SOUND);
|
||||
}
|
||||
|
||||
@Override
|
||||
public float ck() {
|
||||
return NMS.getJumpPower(npc, super.ck());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void collide(net.minecraft.server.v1_10_R1.Entity entity) {
|
||||
// this method is called by both the entities involved - cancelling
|
||||
|
|
|
@ -78,6 +78,11 @@ public class SpiderController extends MobEntityController {
|
|||
return NMSImpl.getSoundEffect(npc, super.bW(), NPC.Metadata.HURT_SOUND);
|
||||
}
|
||||
|
||||
@Override
|
||||
public float ck() {
|
||||
return NMS.getJumpPower(npc, super.ck());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void collide(net.minecraft.server.v1_10_R1.Entity entity) {
|
||||
// this method is called by both the entities involved - cancelling
|
||||
|
|
|
@ -78,6 +78,11 @@ public class SquidController extends MobEntityController {
|
|||
return NMSImpl.getSoundEffect(npc, super.bW(), NPC.Metadata.HURT_SOUND);
|
||||
}
|
||||
|
||||
@Override
|
||||
public float ck() {
|
||||
return NMS.getJumpPower(npc, super.ck());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void collide(net.minecraft.server.v1_10_R1.Entity entity) {
|
||||
// this method is called by both the entities involved - cancelling
|
||||
|
|
|
@ -101,6 +101,11 @@ public class VillagerController extends MobEntityController {
|
|||
return NMSImpl.getSoundEffect(npc, super.bW(), NPC.Metadata.HURT_SOUND);
|
||||
}
|
||||
|
||||
@Override
|
||||
public float ck() {
|
||||
return NMS.getJumpPower(npc, super.ck());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void collide(net.minecraft.server.v1_10_R1.Entity entity) {
|
||||
// this method is called by both the entities involved - cancelling
|
||||
|
|
|
@ -78,6 +78,11 @@ public class WitchController extends MobEntityController {
|
|||
return NMSImpl.getSoundEffect(npc, super.bW(), NPC.Metadata.HURT_SOUND);
|
||||
}
|
||||
|
||||
@Override
|
||||
public float ck() {
|
||||
return NMS.getJumpPower(npc, super.ck());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void collide(net.minecraft.server.v1_10_R1.Entity entity) {
|
||||
// this method is called by both the entities involved - cancelling
|
||||
|
|
|
@ -69,6 +69,11 @@ public class WitherController extends MobEntityController {
|
|||
return NMSImpl.getSoundEffect(npc, super.bW(), NPC.Metadata.HURT_SOUND);
|
||||
}
|
||||
|
||||
@Override
|
||||
public float ck() {
|
||||
return NMS.getJumpPower(npc, super.ck());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void collide(net.minecraft.server.v1_10_R1.Entity entity) {
|
||||
// this method is called by both the entities involved - cancelling
|
||||
|
|
|
@ -89,6 +89,11 @@ public class WolfController extends MobEntityController {
|
|||
return NMSImpl.getSoundEffect(npc, super.bW(), NPC.Metadata.HURT_SOUND);
|
||||
}
|
||||
|
||||
@Override
|
||||
public float ck() {
|
||||
return NMS.getJumpPower(npc, super.ck());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void collide(net.minecraft.server.v1_10_R1.Entity entity) {
|
||||
// this method is called by both the entities involved - cancelling
|
||||
|
|
|
@ -78,6 +78,11 @@ public class ZombieController extends MobEntityController {
|
|||
return NMSImpl.getSoundEffect(npc, super.bW(), NPC.Metadata.HURT_SOUND);
|
||||
}
|
||||
|
||||
@Override
|
||||
public float ck() {
|
||||
return NMS.getJumpPower(npc, super.ck());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void collide(net.minecraft.server.v1_10_R1.Entity entity) {
|
||||
// this method is called by both the entities involved - cancelling
|
||||
|
|
|
@ -86,6 +86,11 @@ public class BatController extends MobEntityController {
|
|||
return NMSImpl.getSoundEffect(npc, super.bX(), NPC.Metadata.HURT_SOUND);
|
||||
}
|
||||
|
||||
@Override
|
||||
public float cl() {
|
||||
return NMS.getJumpPower(npc, super.cl());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void collide(net.minecraft.server.v1_11_R1.Entity entity) {
|
||||
// this method is called by both the entities involved - cancelling
|
||||
|
|
|
@ -83,6 +83,11 @@ public class BlazeController extends MobEntityController {
|
|||
return NMSImpl.getSoundEffect(npc, super.bX(), NPC.Metadata.HURT_SOUND);
|
||||
}
|
||||
|
||||
@Override
|
||||
public float cl() {
|
||||
return NMS.getJumpPower(npc, super.cl());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void collide(net.minecraft.server.v1_11_R1.Entity entity) {
|
||||
// this method is called by both the entities involved - cancelling
|
||||
|
|
|
@ -92,6 +92,11 @@ public class CaveSpiderController extends MobEntityController {
|
|||
return NMSImpl.getSoundEffect(npc, super.bX(), NPC.Metadata.HURT_SOUND);
|
||||
}
|
||||
|
||||
@Override
|
||||
public float cl() {
|
||||
return NMS.getJumpPower(npc, super.cl());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void collide(net.minecraft.server.v1_11_R1.Entity entity) {
|
||||
// this method is called by both the entities involved - cancelling
|
||||
|
|
|
@ -101,6 +101,11 @@ public class ChickenController extends MobEntityController {
|
|||
return NMSImpl.getSoundEffect(npc, super.bX(), NPC.Metadata.HURT_SOUND);
|
||||
}
|
||||
|
||||
@Override
|
||||
public float cl() {
|
||||
return NMS.getJumpPower(npc, super.cl());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void collide(net.minecraft.server.v1_11_R1.Entity entity) {
|
||||
// this method is called by both the entities involved - cancelling
|
||||
|
|
|
@ -116,6 +116,11 @@ public class CowController extends MobEntityController {
|
|||
return NMSImpl.getSoundEffect(npc, super.bX(), NPC.Metadata.HURT_SOUND);
|
||||
}
|
||||
|
||||
@Override
|
||||
public float cl() {
|
||||
return NMS.getJumpPower(npc, super.cl());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void collide(net.minecraft.server.v1_11_R1.Entity entity) {
|
||||
// this method is called by both the entities involved - cancelling
|
||||
|
|
|
@ -95,6 +95,11 @@ public class CreeperController extends MobEntityController {
|
|||
return NMSImpl.getSoundEffect(npc, super.bX(), NPC.Metadata.HURT_SOUND);
|
||||
}
|
||||
|
||||
@Override
|
||||
public float cl() {
|
||||
return NMS.getJumpPower(npc, super.cl());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void collide(net.minecraft.server.v1_11_R1.Entity entity) {
|
||||
// this method is called by both the entities involved - cancelling
|
||||
|
|
|
@ -90,6 +90,11 @@ public class EnderDragonController extends MobEntityController {
|
|||
return NMSImpl.getSoundEffect(npc, super.bX(), NPC.Metadata.HURT_SOUND);
|
||||
}
|
||||
|
||||
@Override
|
||||
public float cl() {
|
||||
return NMS.getJumpPower(npc, super.cl());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void collide(net.minecraft.server.v1_11_R1.Entity entity) {
|
||||
// this method is called by both the entities involved - cancelling
|
||||
|
|
|
@ -92,6 +92,11 @@ public class EndermanController extends MobEntityController {
|
|||
return NMSImpl.getSoundEffect(npc, super.bX(), NPC.Metadata.HURT_SOUND);
|
||||
}
|
||||
|
||||
@Override
|
||||
public float cl() {
|
||||
return NMS.getJumpPower(npc, super.cl());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void collide(net.minecraft.server.v1_11_R1.Entity entity) {
|
||||
// this method is called by both the entities involved - cancelling
|
||||
|
|
|
@ -92,6 +92,11 @@ public class EndermiteController extends MobEntityController {
|
|||
return NMSImpl.getSoundEffect(npc, super.bX(), NPC.Metadata.HURT_SOUND);
|
||||
}
|
||||
|
||||
@Override
|
||||
public float cl() {
|
||||
return NMS.getJumpPower(npc, super.cl());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void collide(net.minecraft.server.v1_11_R1.Entity entity) {
|
||||
// this method is called by both the entities involved - cancelling
|
||||
|
|
|
@ -78,6 +78,11 @@ public class EvokerController extends MobEntityController {
|
|||
return NMSImpl.getSoundEffect(npc, super.bX(), NPC.Metadata.HURT_SOUND);
|
||||
}
|
||||
|
||||
@Override
|
||||
public float cl() {
|
||||
return NMS.getJumpPower(npc, super.cl());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void collide(net.minecraft.server.v1_11_R1.Entity entity) {
|
||||
// this method is called by both the entities involved - cancelling
|
||||
|
|
|
@ -69,6 +69,11 @@ public class GhastController extends MobEntityController {
|
|||
return NMSImpl.getSoundEffect(npc, super.bX(), NPC.Metadata.HURT_SOUND);
|
||||
}
|
||||
|
||||
@Override
|
||||
public float cl() {
|
||||
return NMS.getJumpPower(npc, super.cl());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void collide(net.minecraft.server.v1_11_R1.Entity entity) {
|
||||
// this method is called by both the entities involved - cancelling
|
||||
|
|
|
@ -78,6 +78,11 @@ public class GiantController extends MobEntityController {
|
|||
return NMSImpl.getSoundEffect(npc, super.bX(), NPC.Metadata.HURT_SOUND);
|
||||
}
|
||||
|
||||
@Override
|
||||
public float cl() {
|
||||
return NMS.getJumpPower(npc, super.cl());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void collide(net.minecraft.server.v1_11_R1.Entity entity) {
|
||||
// this method is called by both the entities involved - cancelling
|
||||
|
|
|
@ -78,6 +78,11 @@ public class GuardianController extends MobEntityController {
|
|||
return NMSImpl.getSoundEffect(npc, super.bX(), NPC.Metadata.HURT_SOUND);
|
||||
}
|
||||
|
||||
@Override
|
||||
public float cl() {
|
||||
return NMS.getJumpPower(npc, super.cl());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void collide(net.minecraft.server.v1_11_R1.Entity entity) {
|
||||
// this method is called by both the entities involved - cancelling
|
||||
|
|
|
@ -78,6 +78,11 @@ public class GuardianElderController extends MobEntityController {
|
|||
return NMSImpl.getSoundEffect(npc, super.bX(), NPC.Metadata.HURT_SOUND);
|
||||
}
|
||||
|
||||
@Override
|
||||
public float cl() {
|
||||
return NMS.getJumpPower(npc, super.cl());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void collide(net.minecraft.server.v1_11_R1.Entity entity) {
|
||||
// this method is called by both the entities involved - cancelling
|
||||
|
|
|
@ -45,9 +45,9 @@ public class HorseController extends MobEntityController {
|
|||
|
||||
public static class EntityHorseNPC extends EntityHorse implements NPCHolder {
|
||||
private double baseMovementSpeed;
|
||||
|
||||
private final CitizensNPC npc;
|
||||
private boolean riding;
|
||||
|
||||
public EntityHorseNPC(World world) {
|
||||
this(world, null);
|
||||
}
|
||||
|
@ -103,6 +103,11 @@ public class HorseController extends MobEntityController {
|
|||
return NMSImpl.getSoundEffect(npc, super.bX(), NPC.Metadata.HURT_SOUND);
|
||||
}
|
||||
|
||||
@Override
|
||||
public float cl() {
|
||||
return NMS.getJumpPower(npc, super.cl());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void collide(net.minecraft.server.v1_11_R1.Entity entity) {
|
||||
// this method is called by both the entities involved - cancelling
|
||||
|
|
|
@ -46,9 +46,9 @@ public class HorseDonkeyController extends MobEntityController {
|
|||
|
||||
public static class EntityHorseDonkeyNPC extends EntityHorseDonkey implements NPCHolder {
|
||||
private double baseMovementSpeed;
|
||||
|
||||
private final CitizensNPC npc;
|
||||
private boolean riding;
|
||||
|
||||
public EntityHorseDonkeyNPC(World world) {
|
||||
this(world, null);
|
||||
}
|
||||
|
@ -105,6 +105,11 @@ public class HorseDonkeyController extends MobEntityController {
|
|||
return NMSImpl.getSoundEffect(npc, super.bX(), NPC.Metadata.HURT_SOUND);
|
||||
}
|
||||
|
||||
@Override
|
||||
public float cl() {
|
||||
return NMS.getJumpPower(npc, super.cl());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void collide(net.minecraft.server.v1_11_R1.Entity entity) {
|
||||
// this method is called by both the entities involved - cancelling
|
||||
|
|
|
@ -46,9 +46,9 @@ public class HorseMuleController extends MobEntityController {
|
|||
|
||||
public static class EntityHorseMuleNPC extends EntityHorseMule implements NPCHolder {
|
||||
private double baseMovementSpeed;
|
||||
|
||||
private final CitizensNPC npc;
|
||||
private boolean riding;
|
||||
|
||||
public EntityHorseMuleNPC(World world) {
|
||||
this(world, null);
|
||||
}
|
||||
|
@ -105,6 +105,11 @@ public class HorseMuleController extends MobEntityController {
|
|||
return NMSImpl.getSoundEffect(npc, super.bX(), NPC.Metadata.HURT_SOUND);
|
||||
}
|
||||
|
||||
@Override
|
||||
public float cl() {
|
||||
return NMS.getJumpPower(npc, super.cl());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void collide(net.minecraft.server.v1_11_R1.Entity entity) {
|
||||
// this method is called by both the entities involved - cancelling
|
||||
|
|
|
@ -46,9 +46,9 @@ public class HorseSkeletonController extends MobEntityController {
|
|||
|
||||
public static class EntityHorseSkeletonNPC extends EntityHorseSkeleton implements NPCHolder {
|
||||
private double baseMovementSpeed;
|
||||
|
||||
private final CitizensNPC npc;
|
||||
private boolean riding;
|
||||
|
||||
public EntityHorseSkeletonNPC(World world) {
|
||||
this(world, null);
|
||||
}
|
||||
|
@ -105,6 +105,11 @@ public class HorseSkeletonController extends MobEntityController {
|
|||
return NMSImpl.getSoundEffect(npc, super.bX(), NPC.Metadata.HURT_SOUND);
|
||||
}
|
||||
|
||||
@Override
|
||||
public float cl() {
|
||||
return NMS.getJumpPower(npc, super.cl());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void collide(net.minecraft.server.v1_11_R1.Entity entity) {
|
||||
// this method is called by both the entities involved - cancelling
|
||||
|
|
|
@ -46,9 +46,9 @@ public class HorseZombieController extends MobEntityController {
|
|||
|
||||
public static class EntityHorseZombieNPC extends EntityHorseZombie implements NPCHolder {
|
||||
private double baseMovementSpeed;
|
||||
|
||||
private final CitizensNPC npc;
|
||||
private boolean riding;
|
||||
|
||||
public EntityHorseZombieNPC(World world) {
|
||||
this(world, null);
|
||||
}
|
||||
|
@ -105,6 +105,11 @@ public class HorseZombieController extends MobEntityController {
|
|||
return NMSImpl.getSoundEffect(npc, super.bX(), NPC.Metadata.HURT_SOUND);
|
||||
}
|
||||
|
||||
@Override
|
||||
public float cl() {
|
||||
return NMS.getJumpPower(npc, super.cl());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void collide(net.minecraft.server.v1_11_R1.Entity entity) {
|
||||
// this method is called by both the entities involved - cancelling
|
||||
|
|
|
@ -78,6 +78,11 @@ public class IronGolemController extends MobEntityController {
|
|||
return NMSImpl.getSoundEffect(npc, super.bX(), NPC.Metadata.HURT_SOUND);
|
||||
}
|
||||
|
||||
@Override
|
||||
public float cl() {
|
||||
return NMS.getJumpPower(npc, super.cl());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void collide(net.minecraft.server.v1_11_R1.Entity entity) {
|
||||
// this method is called by both the entities involved - cancelling
|
||||
|
|
|
@ -98,6 +98,11 @@ public class LlamaController extends MobEntityController {
|
|||
return NMSImpl.getSoundEffect(npc, super.bX(), NPC.Metadata.HURT_SOUND);
|
||||
}
|
||||
|
||||
@Override
|
||||
public float cl() {
|
||||
return NMS.getJumpPower(npc, super.cl());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void collide(net.minecraft.server.v1_11_R1.Entity entity) {
|
||||
// this method is called by both the entities involved - cancelling
|
||||
|
|
|
@ -92,6 +92,11 @@ public class MagmaCubeController extends MobEntityController {
|
|||
return NMSImpl.getSoundEffect(npc, super.bX(), NPC.Metadata.HURT_SOUND);
|
||||
}
|
||||
|
||||
@Override
|
||||
public float cl() {
|
||||
return NMS.getJumpPower(npc, super.cl());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void collide(net.minecraft.server.v1_11_R1.Entity entity) {
|
||||
// this method is called by both the entities involved - cancelling
|
||||
|
|
|
@ -96,6 +96,11 @@ public class MushroomCowController extends MobEntityController {
|
|||
return NMSImpl.getSoundEffect(npc, super.bX(), NPC.Metadata.HURT_SOUND);
|
||||
}
|
||||
|
||||
@Override
|
||||
public float cl() {
|
||||
return NMS.getJumpPower(npc, super.cl());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void collide(net.minecraft.server.v1_11_R1.Entity entity) {
|
||||
// this method is called by both the entities involved - cancelling
|
||||
|
|
|
@ -87,6 +87,11 @@ public class OcelotController extends MobEntityController {
|
|||
return NMSImpl.getSoundEffect(npc, super.bX(), NPC.Metadata.HURT_SOUND);
|
||||
}
|
||||
|
||||
@Override
|
||||
public float cl() {
|
||||
return NMS.getJumpPower(npc, super.cl());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void collide(net.minecraft.server.v1_11_R1.Entity entity) {
|
||||
// this method is called by both the entities involved - cancelling
|
||||
|
|
|
@ -88,6 +88,11 @@ public class PigController extends MobEntityController {
|
|||
return NMSImpl.getSoundEffect(npc, super.bX(), NPC.Metadata.HURT_SOUND);
|
||||
}
|
||||
|
||||
@Override
|
||||
public float cl() {
|
||||
return NMS.getJumpPower(npc, super.cl());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void collide(net.minecraft.server.v1_11_R1.Entity entity) {
|
||||
// this method is called by both the entities involved - cancelling
|
||||
|
|
|
@ -78,6 +78,11 @@ public class PigZombieController extends MobEntityController {
|
|||
return NMSImpl.getSoundEffect(npc, super.bX(), NPC.Metadata.HURT_SOUND);
|
||||
}
|
||||
|
||||
@Override
|
||||
public float cl() {
|
||||
return NMS.getJumpPower(npc, super.cl());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void collide(net.minecraft.server.v1_11_R1.Entity entity) {
|
||||
// this method is called by both the entities involved - cancelling
|
||||
|
|
|
@ -78,6 +78,11 @@ public class PolarBearController extends MobEntityController {
|
|||
return NMSImpl.getSoundEffect(npc, super.bX(), NPC.Metadata.HURT_SOUND);
|
||||
}
|
||||
|
||||
@Override
|
||||
public float cl() {
|
||||
return NMS.getJumpPower(npc, super.cl());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void collide(net.minecraft.server.v1_11_R1.Entity entity) {
|
||||
// this method is called by both the entities involved - cancelling
|
||||
|
|
|
@ -88,6 +88,11 @@ public class RabbitController extends MobEntityController {
|
|||
return NMSImpl.getSoundEffect(npc, super.bX(), NPC.Metadata.HURT_SOUND);
|
||||
}
|
||||
|
||||
@Override
|
||||
public float cl() {
|
||||
return NMS.getJumpPower(npc, super.cl());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void collide(net.minecraft.server.v1_11_R1.Entity entity) {
|
||||
// this method is called by both the entities involved - cancelling
|
||||
|
|
|
@ -87,6 +87,11 @@ public class SheepController extends MobEntityController {
|
|||
return NMSImpl.getSoundEffect(npc, super.bX(), NPC.Metadata.HURT_SOUND);
|
||||
}
|
||||
|
||||
@Override
|
||||
public float cl() {
|
||||
return NMS.getJumpPower(npc, super.cl());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void collide(net.minecraft.server.v1_11_R1.Entity entity) {
|
||||
// this method is called by both the entities involved - cancelling
|
||||
|
|
|
@ -89,6 +89,11 @@ public class ShulkerController extends MobEntityController {
|
|||
return NMSImpl.getSoundEffect(npc, super.bX(), NPC.Metadata.HURT_SOUND);
|
||||
}
|
||||
|
||||
@Override
|
||||
public float cl() {
|
||||
return NMS.getJumpPower(npc, super.cl());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void collide(net.minecraft.server.v1_11_R1.Entity entity) {
|
||||
// this method is called by both the entities involved - cancelling
|
||||
|
|
|
@ -78,6 +78,11 @@ public class SilverfishController extends MobEntityController {
|
|||
return NMSImpl.getSoundEffect(npc, super.bX(), NPC.Metadata.HURT_SOUND);
|
||||
}
|
||||
|
||||
@Override
|
||||
public float cl() {
|
||||
return NMS.getJumpPower(npc, super.cl());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void collide(net.minecraft.server.v1_11_R1.Entity entity) {
|
||||
// this method is called by both the entities involved - cancelling
|
||||
|
|
|
@ -78,6 +78,11 @@ public class SkeletonController extends MobEntityController {
|
|||
return NMSImpl.getSoundEffect(npc, super.bX(), NPC.Metadata.HURT_SOUND);
|
||||
}
|
||||
|
||||
@Override
|
||||
public float cl() {
|
||||
return NMS.getJumpPower(npc, super.cl());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void collide(net.minecraft.server.v1_11_R1.Entity entity) {
|
||||
// this method is called by both the entities involved - cancelling
|
||||
|
|
|
@ -78,6 +78,11 @@ public class SkeletonStrayController extends MobEntityController {
|
|||
return NMSImpl.getSoundEffect(npc, super.bX(), NPC.Metadata.HURT_SOUND);
|
||||
}
|
||||
|
||||
@Override
|
||||
public float cl() {
|
||||
return NMS.getJumpPower(npc, super.cl());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void collide(net.minecraft.server.v1_11_R1.Entity entity) {
|
||||
// this method is called by both the entities involved - cancelling
|
||||
|
|
|
@ -78,6 +78,11 @@ public class SkeletonWitherController extends MobEntityController {
|
|||
return NMSImpl.getSoundEffect(npc, super.bX(), NPC.Metadata.HURT_SOUND);
|
||||
}
|
||||
|
||||
@Override
|
||||
public float cl() {
|
||||
return NMS.getJumpPower(npc, super.cl());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void collide(net.minecraft.server.v1_11_R1.Entity entity) {
|
||||
// this method is called by both the entities involved - cancelling
|
||||
|
|
|
@ -92,6 +92,11 @@ public class SlimeController extends MobEntityController {
|
|||
return NMSImpl.getSoundEffect(npc, super.bX(), NPC.Metadata.HURT_SOUND);
|
||||
}
|
||||
|
||||
@Override
|
||||
public float cl() {
|
||||
return NMS.getJumpPower(npc, super.cl());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void collide(net.minecraft.server.v1_11_R1.Entity entity) {
|
||||
// this method is called by both the entities involved - cancelling
|
||||
|
|
|
@ -78,6 +78,11 @@ public class SnowmanController extends MobEntityController {
|
|||
return NMSImpl.getSoundEffect(npc, super.bX(), NPC.Metadata.HURT_SOUND);
|
||||
}
|
||||
|
||||
@Override
|
||||
public float cl() {
|
||||
return NMS.getJumpPower(npc, super.cl());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void collide(net.minecraft.server.v1_11_R1.Entity entity) {
|
||||
// this method is called by both the entities involved - cancelling
|
||||
|
|
|
@ -78,6 +78,11 @@ public class SpiderController extends MobEntityController {
|
|||
return NMSImpl.getSoundEffect(npc, super.bX(), NPC.Metadata.HURT_SOUND);
|
||||
}
|
||||
|
||||
@Override
|
||||
public float cl() {
|
||||
return NMS.getJumpPower(npc, super.cl());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void collide(net.minecraft.server.v1_11_R1.Entity entity) {
|
||||
// this method is called by both the entities involved - cancelling
|
||||
|
|
|
@ -78,6 +78,11 @@ public class SquidController extends MobEntityController {
|
|||
return NMSImpl.getSoundEffect(npc, super.bX(), NPC.Metadata.HURT_SOUND);
|
||||
}
|
||||
|
||||
@Override
|
||||
public float cl() {
|
||||
return NMS.getJumpPower(npc, super.cl());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void collide(net.minecraft.server.v1_11_R1.Entity entity) {
|
||||
// this method is called by both the entities involved - cancelling
|
||||
|
|
|
@ -72,6 +72,11 @@ public class VexController extends MobEntityController {
|
|||
return NMSImpl.getSoundEffect(npc, super.bX(), NPC.Metadata.HURT_SOUND);
|
||||
}
|
||||
|
||||
@Override
|
||||
public float cl() {
|
||||
return NMS.getJumpPower(npc, super.cl());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void collide(net.minecraft.server.v1_11_R1.Entity entity) {
|
||||
// this method is called by both the entities involved - cancelling
|
||||
|
|
|
@ -107,6 +107,11 @@ public class VillagerController extends MobEntityController {
|
|||
return NMSImpl.getSoundEffect(npc, super.bX(), NPC.Metadata.HURT_SOUND);
|
||||
}
|
||||
|
||||
@Override
|
||||
public float cl() {
|
||||
return NMS.getJumpPower(npc, super.cl());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void collide(net.minecraft.server.v1_11_R1.Entity entity) {
|
||||
// this method is called by both the entities involved - cancelling
|
||||
|
|
|
@ -87,6 +87,11 @@ public class VindicatorController extends MobEntityController {
|
|||
return NMSImpl.getSoundEffect(npc, super.bX(), NPC.Metadata.HURT_SOUND);
|
||||
}
|
||||
|
||||
@Override
|
||||
public float cl() {
|
||||
return NMS.getJumpPower(npc, super.cl());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void collide(net.minecraft.server.v1_11_R1.Entity entity) {
|
||||
// this method is called by both the entities involved - cancelling
|
||||
|
|
|
@ -78,6 +78,11 @@ public class WitchController extends MobEntityController {
|
|||
return NMSImpl.getSoundEffect(npc, super.bX(), NPC.Metadata.HURT_SOUND);
|
||||
}
|
||||
|
||||
@Override
|
||||
public float cl() {
|
||||
return NMS.getJumpPower(npc, super.cl());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void collide(net.minecraft.server.v1_11_R1.Entity entity) {
|
||||
// this method is called by both the entities involved - cancelling
|
||||
|
|
|
@ -69,6 +69,11 @@ public class WitherController extends MobEntityController {
|
|||
return NMSImpl.getSoundEffect(npc, super.bX(), NPC.Metadata.HURT_SOUND);
|
||||
}
|
||||
|
||||
@Override
|
||||
public float cl() {
|
||||
return NMS.getJumpPower(npc, super.cl());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void collide(net.minecraft.server.v1_11_R1.Entity entity) {
|
||||
// this method is called by both the entities involved - cancelling
|
||||
|
|
|
@ -89,6 +89,11 @@ public class WolfController extends MobEntityController {
|
|||
return NMSImpl.getSoundEffect(npc, super.bX(), NPC.Metadata.HURT_SOUND);
|
||||
}
|
||||
|
||||
@Override
|
||||
public float cl() {
|
||||
return NMS.getJumpPower(npc, super.cl());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void collide(net.minecraft.server.v1_11_R1.Entity entity) {
|
||||
// this method is called by both the entities involved - cancelling
|
||||
|
|
|
@ -78,6 +78,11 @@ public class ZombieController extends MobEntityController {
|
|||
return NMSImpl.getSoundEffect(npc, super.bX(), NPC.Metadata.HURT_SOUND);
|
||||
}
|
||||
|
||||
@Override
|
||||
public float cl() {
|
||||
return NMS.getJumpPower(npc, super.cl());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void collide(net.minecraft.server.v1_11_R1.Entity entity) {
|
||||
// this method is called by both the entities involved - cancelling
|
||||
|
|
|
@ -78,6 +78,11 @@ public class ZombieHuskController extends MobEntityController {
|
|||
return NMSImpl.getSoundEffect(npc, super.bX(), NPC.Metadata.HURT_SOUND);
|
||||
}
|
||||
|
||||
@Override
|
||||
public float cl() {
|
||||
return NMS.getJumpPower(npc, super.cl());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void collide(net.minecraft.server.v1_11_R1.Entity entity) {
|
||||
// this method is called by both the entities involved - cancelling
|
||||
|
|
|
@ -78,6 +78,11 @@ public class ZombieVillagerController extends MobEntityController {
|
|||
return NMSImpl.getSoundEffect(npc, super.bX(), NPC.Metadata.HURT_SOUND);
|
||||
}
|
||||
|
||||
@Override
|
||||
public float cl() {
|
||||
return NMS.getJumpPower(npc, super.cl());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void collide(net.minecraft.server.v1_11_R1.Entity entity) {
|
||||
// this method is called by both the entities involved - cancelling
|
||||
|
|
|
@ -93,6 +93,11 @@ public class BatController extends MobEntityController {
|
|||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public float ct() {
|
||||
return NMS.getJumpPower(npc, super.ct());
|
||||
}
|
||||
|
||||
@Override
|
||||
protected SoundEffect d(DamageSource damagesource) {
|
||||
return NMSImpl.getSoundEffect(npc, super.d(damagesource), NPC.Metadata.HURT_SOUND);
|
||||
|
|
|
@ -90,6 +90,11 @@ public class BlazeController extends MobEntityController {
|
|||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public float ct() {
|
||||
return NMS.getJumpPower(npc, super.ct());
|
||||
}
|
||||
|
||||
@Override
|
||||
protected SoundEffect d(DamageSource damagesource) {
|
||||
return NMSImpl.getSoundEffect(npc, super.d(damagesource), NPC.Metadata.HURT_SOUND);
|
||||
|
|
|
@ -108,6 +108,11 @@ public class CaveSpiderController extends MobEntityController {
|
|||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public float ct() {
|
||||
return NMS.getJumpPower(npc, super.ct());
|
||||
}
|
||||
|
||||
@Override
|
||||
protected SoundEffect d(DamageSource damagesource) {
|
||||
return NMSImpl.getSoundEffect(npc, super.d(damagesource), NPC.Metadata.HURT_SOUND);
|
||||
|
|
|
@ -117,6 +117,11 @@ public class ChickenController extends MobEntityController {
|
|||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public float ct() {
|
||||
return NMS.getJumpPower(npc, super.ct());
|
||||
}
|
||||
|
||||
@Override
|
||||
protected SoundEffect d(DamageSource damagesource) {
|
||||
return NMSImpl.getSoundEffect(npc, super.d(damagesource), NPC.Metadata.HURT_SOUND);
|
||||
|
|
|
@ -132,6 +132,11 @@ public class CowController extends MobEntityController {
|
|||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public float ct() {
|
||||
return NMS.getJumpPower(npc, super.ct());
|
||||
}
|
||||
|
||||
@Override
|
||||
protected SoundEffect d(DamageSource damagesource) {
|
||||
return NMSImpl.getSoundEffect(npc, super.d(damagesource), NPC.Metadata.HURT_SOUND);
|
||||
|
|
|
@ -110,6 +110,11 @@ public class CreeperController extends MobEntityController {
|
|||
Util.callCollisionEvent(npc, entity.getBukkitEntity());
|
||||
}
|
||||
|
||||
@Override
|
||||
public float ct() {
|
||||
return NMS.getJumpPower(npc, super.ct());
|
||||
}
|
||||
|
||||
@Override
|
||||
protected SoundEffect d(DamageSource damagesource) {
|
||||
return NMSImpl.getSoundEffect(npc, super.d(damagesource), NPC.Metadata.HURT_SOUND);
|
||||
|
|
|
@ -95,6 +95,11 @@ public class EnderDragonController extends MobEntityController {
|
|||
Util.callCollisionEvent(npc, entity.getBukkitEntity());
|
||||
}
|
||||
|
||||
@Override
|
||||
public float ct() {
|
||||
return NMS.getJumpPower(npc, super.ct());
|
||||
}
|
||||
|
||||
@Override
|
||||
protected SoundEffect d(DamageSource damagesource) {
|
||||
return NMSImpl.getSoundEffect(npc, super.d(damagesource), NPC.Metadata.HURT_SOUND);
|
||||
|
|
|
@ -107,6 +107,11 @@ public class EndermanController extends MobEntityController {
|
|||
Util.callCollisionEvent(npc, entity.getBukkitEntity());
|
||||
}
|
||||
|
||||
@Override
|
||||
public float ct() {
|
||||
return NMS.getJumpPower(npc, super.ct());
|
||||
}
|
||||
|
||||
@Override
|
||||
protected SoundEffect d(DamageSource damagesource) {
|
||||
return NMSImpl.getSoundEffect(npc, super.d(damagesource), NPC.Metadata.HURT_SOUND);
|
||||
|
|
|
@ -107,6 +107,11 @@ public class EndermiteController extends MobEntityController {
|
|||
Util.callCollisionEvent(npc, entity.getBukkitEntity());
|
||||
}
|
||||
|
||||
@Override
|
||||
public float ct() {
|
||||
return NMS.getJumpPower(npc, super.ct());
|
||||
}
|
||||
|
||||
@Override
|
||||
protected SoundEffect d(DamageSource damagesource) {
|
||||
return NMSImpl.getSoundEffect(npc, super.d(damagesource), NPC.Metadata.HURT_SOUND);
|
||||
|
|
|
@ -94,6 +94,11 @@ public class EvokerController extends MobEntityController {
|
|||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public float ct() {
|
||||
return NMS.getJumpPower(npc, super.ct());
|
||||
}
|
||||
|
||||
@Override
|
||||
protected SoundEffect d(DamageSource damagesource) {
|
||||
return NMSImpl.getSoundEffect(npc, super.d(damagesource), NPC.Metadata.HURT_SOUND);
|
||||
|
|
|
@ -81,6 +81,11 @@ public class GhastController extends MobEntityController {
|
|||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public float ct() {
|
||||
return NMS.getJumpPower(npc, super.ct());
|
||||
}
|
||||
|
||||
@Override
|
||||
protected SoundEffect d(DamageSource damagesource) {
|
||||
return NMSImpl.getSoundEffect(npc, super.d(damagesource), NPC.Metadata.HURT_SOUND);
|
||||
|
|
|
@ -93,6 +93,11 @@ public class GiantController extends MobEntityController {
|
|||
Util.callCollisionEvent(npc, entity.getBukkitEntity());
|
||||
}
|
||||
|
||||
@Override
|
||||
public float ct() {
|
||||
return NMS.getJumpPower(npc, super.ct());
|
||||
}
|
||||
|
||||
@Override
|
||||
protected SoundEffect d(DamageSource damagesource) {
|
||||
return NMSImpl.getSoundEffect(npc, super.d(damagesource), NPC.Metadata.HURT_SOUND);
|
||||
|
|
|
@ -94,6 +94,11 @@ public class GuardianController extends MobEntityController {
|
|||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public float ct() {
|
||||
return NMS.getJumpPower(npc, super.ct());
|
||||
}
|
||||
|
||||
@Override
|
||||
protected SoundEffect d(DamageSource damagesource) {
|
||||
return NMSImpl.getSoundEffect(npc, super.d(damagesource), NPC.Metadata.HURT_SOUND);
|
||||
|
|
|
@ -94,6 +94,11 @@ public class GuardianElderController extends MobEntityController {
|
|||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public float ct() {
|
||||
return NMS.getJumpPower(npc, super.ct());
|
||||
}
|
||||
|
||||
@Override
|
||||
protected SoundEffect d(DamageSource damagesource) {
|
||||
return NMSImpl.getSoundEffect(npc, super.d(damagesource), NPC.Metadata.HURT_SOUND);
|
||||
|
|
|
@ -47,9 +47,9 @@ public class HorseController extends MobEntityController {
|
|||
|
||||
public static class EntityHorseNPC extends EntityHorse implements NPCHolder {
|
||||
private double baseMovementSpeed;
|
||||
|
||||
private final CitizensNPC npc;
|
||||
private boolean riding;
|
||||
|
||||
public EntityHorseNPC(World world) {
|
||||
this(world, null);
|
||||
}
|
||||
|
@ -119,6 +119,11 @@ public class HorseController extends MobEntityController {
|
|||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public float ct() {
|
||||
return NMS.getJumpPower(npc, super.ct());
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean cV() {
|
||||
if (npc != null && riding) {
|
||||
|
|
|
@ -47,9 +47,9 @@ public class HorseDonkeyController extends MobEntityController {
|
|||
|
||||
public static class EntityHorseDonkeyNPC extends EntityHorseDonkey implements NPCHolder {
|
||||
private double baseMovementSpeed;
|
||||
|
||||
private final CitizensNPC npc;
|
||||
private boolean riding;
|
||||
|
||||
public EntityHorseDonkeyNPC(World world) {
|
||||
this(world, null);
|
||||
}
|
||||
|
@ -119,6 +119,11 @@ public class HorseDonkeyController extends MobEntityController {
|
|||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public float ct() {
|
||||
return NMS.getJumpPower(npc, super.ct());
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean cV() {
|
||||
if (npc != null && riding) {
|
||||
|
|
|
@ -47,9 +47,9 @@ public class HorseMuleController extends MobEntityController {
|
|||
|
||||
public static class EntityHorseMuleNPC extends EntityHorseMule implements NPCHolder {
|
||||
private double baseMovementSpeed;
|
||||
|
||||
private final CitizensNPC npc;
|
||||
private boolean riding;
|
||||
|
||||
public EntityHorseMuleNPC(World world) {
|
||||
this(world, null);
|
||||
}
|
||||
|
@ -119,6 +119,11 @@ public class HorseMuleController extends MobEntityController {
|
|||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public float ct() {
|
||||
return NMS.getJumpPower(npc, super.ct());
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean cV() {
|
||||
if (npc != null && riding) {
|
||||
|
|
|
@ -47,9 +47,9 @@ public class HorseSkeletonController extends MobEntityController {
|
|||
|
||||
public static class EntityHorseSkeletonNPC extends EntityHorseSkeleton implements NPCHolder {
|
||||
private double baseMovementSpeed;
|
||||
|
||||
private final CitizensNPC npc;
|
||||
private boolean riding;
|
||||
|
||||
public EntityHorseSkeletonNPC(World world) {
|
||||
this(world, null);
|
||||
}
|
||||
|
@ -120,6 +120,11 @@ public class HorseSkeletonController extends MobEntityController {
|
|||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public float ct() {
|
||||
return NMS.getJumpPower(npc, super.ct());
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean cV() {
|
||||
if (npc != null && riding) {
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue