Implement JumpPowerSupplier metadata

This commit is contained in:
fullwall 2023-11-01 01:49:01 +08:00
parent 2736f4ab53
commit 1a8246bb88
774 changed files with 3737 additions and 192 deletions

View File

@ -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;

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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) {

View File

@ -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) {

View File

@ -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) {

View File

@ -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