Add isPushable implementations for 1.17-1.19

This commit is contained in:
fullwall 2023-02-19 00:55:16 +08:00
parent 6f754d2594
commit 420005c6aa
759 changed files with 980 additions and 983 deletions

View File

@ -91,7 +91,7 @@ public class NMS {
* an Exception like it should.
*/
public static void enderTeleportTo(NPC npc, double x, double y, double z, Runnable cb) {
public static void enderTeleportTo(NPC npc, Runnable cb) {
if (npc == null) {
cb.run();
return;

View File

@ -52,10 +52,7 @@ public class Util {
}
public static Vector callPushEvent(NPC npc, double x, double y, double z) {
if (npc == null) {
return new Vector(x, y, z);
}
boolean allowed = !npc.isProtected()
boolean allowed = npc == null || !npc.isProtected()
|| (npc.data().has(NPC.Metadata.COLLIDABLE) && npc.data().<Boolean> get(NPC.Metadata.COLLIDABLE));
if (NPCPushEvent.getHandlerList().getRegisteredListeners().length == 0) {
return allowed ? new Vector(x, y, z) : null;

View File

@ -98,7 +98,7 @@ public class BatController extends MobEntityController {
@Override
public void enderTeleportTo(double d0, double d1, double d2) {
NMS.enderTeleportTo(npc, d0, d1, d2, () -> super.enderTeleportTo(d0, d1, d2));
NMS.enderTeleportTo(npc, () -> super.enderTeleportTo(d0, d1, d2));
}
@Override

View File

@ -95,7 +95,7 @@ public class BlazeController extends MobEntityController {
@Override
public void enderTeleportTo(double d0, double d1, double d2) {
NMS.enderTeleportTo(npc, d0, d1, d2, () -> super.enderTeleportTo(d0, d1, d2));
NMS.enderTeleportTo(npc, () -> super.enderTeleportTo(d0, d1, d2));
}
@Override

View File

@ -111,7 +111,7 @@ public class CaveSpiderController extends MobEntityController {
@Override
public void enderTeleportTo(double d0, double d1, double d2) {
NMS.enderTeleportTo(npc, d0, d1, d2, () -> super.enderTeleportTo(d0, d1, d2));
NMS.enderTeleportTo(npc, () -> super.enderTeleportTo(d0, d1, d2));
}
@Override

View File

@ -122,7 +122,7 @@ public class ChickenController extends MobEntityController {
@Override
public void enderTeleportTo(double d0, double d1, double d2) {
NMS.enderTeleportTo(npc, d0, d1, d2, () -> super.enderTeleportTo(d0, d1, d2));
NMS.enderTeleportTo(npc, () -> super.enderTeleportTo(d0, d1, d2));
}
@Override

View File

@ -137,7 +137,7 @@ public class CowController extends MobEntityController {
@Override
public void enderTeleportTo(double d0, double d1, double d2) {
NMS.enderTeleportTo(npc, d0, d1, d2, () -> super.enderTeleportTo(d0, d1, d2));
NMS.enderTeleportTo(npc, () -> super.enderTeleportTo(d0, d1, d2));
}
@Override

View File

@ -121,7 +121,7 @@ public class CreeperController extends MobEntityController {
@Override
public void enderTeleportTo(double d0, double d1, double d2) {
NMS.enderTeleportTo(npc, d0, d1, d2, () -> super.enderTeleportTo(d0, d1, d2));
NMS.enderTeleportTo(npc, () -> super.enderTeleportTo(d0, d1, d2));
}
@Override

View File

@ -94,7 +94,7 @@ public class EnderDragonController extends MobEntityController {
@Override
public void enderTeleportTo(double d0, double d1, double d2) {
NMS.enderTeleportTo(npc, d0, d1, d2, () -> super.enderTeleportTo(d0, d1, d2));
NMS.enderTeleportTo(npc, () -> super.enderTeleportTo(d0, d1, d2));
}
@Override

View File

@ -110,7 +110,7 @@ public class EndermanController extends MobEntityController {
@Override
public void enderTeleportTo(double d0, double d1, double d2) {
NMS.enderTeleportTo(npc, d0, d1, d2, () -> super.enderTeleportTo(d0, d1, d2));
NMS.enderTeleportTo(npc, () -> super.enderTeleportTo(d0, d1, d2));
}
@Override

View File

@ -110,7 +110,7 @@ public class EndermiteController extends MobEntityController {
@Override
public void enderTeleportTo(double d0, double d1, double d2) {
NMS.enderTeleportTo(npc, d0, d1, d2, () -> super.enderTeleportTo(d0, d1, d2));
NMS.enderTeleportTo(npc, () -> super.enderTeleportTo(d0, d1, d2));
}
@Override

View File

@ -86,7 +86,7 @@ public class GhastController extends MobEntityController {
@Override
public void enderTeleportTo(double d0, double d1, double d2) {
NMS.enderTeleportTo(npc, d0, d1, d2, () -> super.enderTeleportTo(d0, d1, d2));
NMS.enderTeleportTo(npc, () -> super.enderTeleportTo(d0, d1, d2));
}
@Override

View File

@ -96,7 +96,7 @@ public class GiantController extends MobEntityController {
@Override
public void enderTeleportTo(double d0, double d1, double d2) {
NMS.enderTeleportTo(npc, d0, d1, d2, () -> super.enderTeleportTo(d0, d1, d2));
NMS.enderTeleportTo(npc, () -> super.enderTeleportTo(d0, d1, d2));
}
@Override

View File

@ -97,7 +97,7 @@ public class GuardianController extends MobEntityController {
@Override
public void enderTeleportTo(double d0, double d1, double d2) {
NMS.enderTeleportTo(npc, d0, d1, d2, () -> super.enderTeleportTo(d0, d1, d2));
NMS.enderTeleportTo(npc, () -> super.enderTeleportTo(d0, d1, d2));
}
@Override

View File

@ -127,7 +127,7 @@ public class HorseController extends MobEntityController {
@Override
public void enderTeleportTo(double d0, double d1, double d2) {
NMS.enderTeleportTo(npc, d0, d1, d2, () -> super.enderTeleportTo(d0, d1, d2));
NMS.enderTeleportTo(npc, () -> super.enderTeleportTo(d0, d1, d2));
}
@Override

View File

@ -96,7 +96,7 @@ public class IronGolemController extends MobEntityController {
@Override
public void enderTeleportTo(double d0, double d1, double d2) {
NMS.enderTeleportTo(npc, d0, d1, d2, () -> super.enderTeleportTo(d0, d1, d2));
NMS.enderTeleportTo(npc, () -> super.enderTeleportTo(d0, d1, d2));
}
@Override

View File

@ -109,7 +109,7 @@ public class MagmaCubeController extends MobEntityController {
@Override
public void enderTeleportTo(double d0, double d1, double d2) {
NMS.enderTeleportTo(npc, d0, d1, d2, () -> super.enderTeleportTo(d0, d1, d2));
NMS.enderTeleportTo(npc, () -> super.enderTeleportTo(d0, d1, d2));
}
@Override

View File

@ -118,7 +118,7 @@ public class MushroomCowController extends MobEntityController {
@Override
public void enderTeleportTo(double d0, double d1, double d2) {
NMS.enderTeleportTo(npc, d0, d1, d2, () -> super.enderTeleportTo(d0, d1, d2));
NMS.enderTeleportTo(npc, () -> super.enderTeleportTo(d0, d1, d2));
}
@Override

View File

@ -114,7 +114,7 @@ public class OcelotController extends MobEntityController {
@Override
public void enderTeleportTo(double d0, double d1, double d2) {
NMS.enderTeleportTo(npc, d0, d1, d2, () -> super.enderTeleportTo(d0, d1, d2));
NMS.enderTeleportTo(npc, () -> super.enderTeleportTo(d0, d1, d2));
}
@Override

View File

@ -117,7 +117,7 @@ public class PigController extends MobEntityController {
@Override
public void enderTeleportTo(double d0, double d1, double d2) {
NMS.enderTeleportTo(npc, d0, d1, d2, () -> super.enderTeleportTo(d0, d1, d2));
NMS.enderTeleportTo(npc, () -> super.enderTeleportTo(d0, d1, d2));
}
@Override

View File

@ -97,7 +97,7 @@ public class PigZombieController extends MobEntityController {
@Override
public void enderTeleportTo(double d0, double d1, double d2) {
NMS.enderTeleportTo(npc, d0, d1, d2, () -> super.enderTeleportTo(d0, d1, d2));
NMS.enderTeleportTo(npc, () -> super.enderTeleportTo(d0, d1, d2));
}
@Override

View File

@ -92,7 +92,7 @@ public class PolarBearController extends MobEntityController {
@Override
public void enderTeleportTo(double d0, double d1, double d2) {
NMS.enderTeleportTo(npc, d0, d1, d2, () -> super.enderTeleportTo(d0, d1, d2));
NMS.enderTeleportTo(npc, () -> super.enderTeleportTo(d0, d1, d2));
}
@Override

View File

@ -109,7 +109,7 @@ public class RabbitController extends MobEntityController {
@Override
public void enderTeleportTo(double d0, double d1, double d2) {
NMS.enderTeleportTo(npc, d0, d1, d2, () -> super.enderTeleportTo(d0, d1, d2));
NMS.enderTeleportTo(npc, () -> super.enderTeleportTo(d0, d1, d2));
}
@Override

View File

@ -107,7 +107,7 @@ public class SheepController extends MobEntityController {
@Override
public void enderTeleportTo(double d0, double d1, double d2) {
NMS.enderTeleportTo(npc, d0, d1, d2, () -> super.enderTeleportTo(d0, d1, d2));
NMS.enderTeleportTo(npc, () -> super.enderTeleportTo(d0, d1, d2));
}
@Override

View File

@ -97,7 +97,7 @@ public class ShulkerController extends MobEntityController {
@Override
public void enderTeleportTo(double d0, double d1, double d2) {
NMS.enderTeleportTo(npc, d0, d1, d2, () -> super.enderTeleportTo(d0, d1, d2));
NMS.enderTeleportTo(npc, () -> super.enderTeleportTo(d0, d1, d2));
}
@Override

View File

@ -96,7 +96,7 @@ public class SilverfishController extends MobEntityController {
@Override
public void enderTeleportTo(double d0, double d1, double d2) {
NMS.enderTeleportTo(npc, d0, d1, d2, () -> super.enderTeleportTo(d0, d1, d2));
NMS.enderTeleportTo(npc, () -> super.enderTeleportTo(d0, d1, d2));
}
@Override

View File

@ -96,7 +96,7 @@ public class SkeletonController extends MobEntityController {
@Override
public void enderTeleportTo(double d0, double d1, double d2) {
NMS.enderTeleportTo(npc, d0, d1, d2, () -> super.enderTeleportTo(d0, d1, d2));
NMS.enderTeleportTo(npc, () -> super.enderTeleportTo(d0, d1, d2));
}
@Override

View File

@ -110,7 +110,7 @@ public class SlimeController extends MobEntityController {
@Override
public void enderTeleportTo(double d0, double d1, double d2) {
NMS.enderTeleportTo(npc, d0, d1, d2, () -> super.enderTeleportTo(d0, d1, d2));
NMS.enderTeleportTo(npc, () -> super.enderTeleportTo(d0, d1, d2));
}
@Override

View File

@ -96,7 +96,7 @@ public class SnowmanController extends MobEntityController {
@Override
public void enderTeleportTo(double d0, double d1, double d2) {
NMS.enderTeleportTo(npc, d0, d1, d2, () -> super.enderTeleportTo(d0, d1, d2));
NMS.enderTeleportTo(npc, () -> super.enderTeleportTo(d0, d1, d2));
}
@Override

View File

@ -96,7 +96,7 @@ public class SpiderController extends MobEntityController {
@Override
public void enderTeleportTo(double d0, double d1, double d2) {
NMS.enderTeleportTo(npc, d0, d1, d2, () -> super.enderTeleportTo(d0, d1, d2));
NMS.enderTeleportTo(npc, () -> super.enderTeleportTo(d0, d1, d2));
}
@Override

View File

@ -96,7 +96,7 @@ public class SquidController extends MobEntityController {
@Override
public void enderTeleportTo(double d0, double d1, double d2) {
NMS.enderTeleportTo(npc, d0, d1, d2, () -> super.enderTeleportTo(d0, d1, d2));
NMS.enderTeleportTo(npc, () -> super.enderTeleportTo(d0, d1, d2));
}
@Override

View File

@ -130,7 +130,7 @@ public class VillagerController extends MobEntityController {
@Override
public void enderTeleportTo(double d0, double d1, double d2) {
NMS.enderTeleportTo(npc, d0, d1, d2, () -> super.enderTeleportTo(d0, d1, d2));
NMS.enderTeleportTo(npc, () -> super.enderTeleportTo(d0, d1, d2));
}
@Override

View File

@ -96,7 +96,7 @@ public class WitchController extends MobEntityController {
@Override
public void enderTeleportTo(double d0, double d1, double d2) {
NMS.enderTeleportTo(npc, d0, d1, d2, () -> super.enderTeleportTo(d0, d1, d2));
NMS.enderTeleportTo(npc, () -> super.enderTeleportTo(d0, d1, d2));
}
@Override

View File

@ -86,7 +86,7 @@ public class WitherController extends MobEntityController {
@Override
public void enderTeleportTo(double d0, double d1, double d2) {
NMS.enderTeleportTo(npc, d0, d1, d2, () -> super.enderTeleportTo(d0, d1, d2));
NMS.enderTeleportTo(npc, () -> super.enderTeleportTo(d0, d1, d2));
}
@Override

View File

@ -110,7 +110,7 @@ public class WolfController extends MobEntityController {
@Override
public void enderTeleportTo(double d0, double d1, double d2) {
NMS.enderTeleportTo(npc, d0, d1, d2, () -> super.enderTeleportTo(d0, d1, d2));
NMS.enderTeleportTo(npc, () -> super.enderTeleportTo(d0, d1, d2));
}
@Override

View File

@ -96,7 +96,7 @@ public class ZombieController extends MobEntityController {
@Override
public void enderTeleportTo(double d0, double d1, double d2) {
NMS.enderTeleportTo(npc, d0, d1, d2, () -> super.enderTeleportTo(d0, d1, d2));
NMS.enderTeleportTo(npc, () -> super.enderTeleportTo(d0, d1, d2));
}
@Override

View File

@ -98,7 +98,7 @@ public class BatController extends MobEntityController {
@Override
public void enderTeleportTo(double d0, double d1, double d2) {
NMS.enderTeleportTo(npc, d0, d1, d2, () -> super.enderTeleportTo(d0, d1, d2));
NMS.enderTeleportTo(npc, () -> super.enderTeleportTo(d0, d1, d2));
}
@Override

View File

@ -95,7 +95,7 @@ public class BlazeController extends MobEntityController {
@Override
public void enderTeleportTo(double d0, double d1, double d2) {
NMS.enderTeleportTo(npc, d0, d1, d2, () -> super.enderTeleportTo(d0, d1, d2));
NMS.enderTeleportTo(npc, () -> super.enderTeleportTo(d0, d1, d2));
}
@Override

View File

@ -111,7 +111,7 @@ public class CaveSpiderController extends MobEntityController {
@Override
public void enderTeleportTo(double d0, double d1, double d2) {
NMS.enderTeleportTo(npc, d0, d1, d2, () -> super.enderTeleportTo(d0, d1, d2));
NMS.enderTeleportTo(npc, () -> super.enderTeleportTo(d0, d1, d2));
}
@Override

View File

@ -122,7 +122,7 @@ public class ChickenController extends MobEntityController {
@Override
public void enderTeleportTo(double d0, double d1, double d2) {
NMS.enderTeleportTo(npc, d0, d1, d2, () -> super.enderTeleportTo(d0, d1, d2));
NMS.enderTeleportTo(npc, () -> super.enderTeleportTo(d0, d1, d2));
}
@Override

View File

@ -137,7 +137,7 @@ public class CowController extends MobEntityController {
@Override
public void enderTeleportTo(double d0, double d1, double d2) {
NMS.enderTeleportTo(npc, d0, d1, d2, () -> super.enderTeleportTo(d0, d1, d2));
NMS.enderTeleportTo(npc, () -> super.enderTeleportTo(d0, d1, d2));
}
@Override

View File

@ -113,7 +113,7 @@ public class CreeperController extends MobEntityController {
@Override
public void enderTeleportTo(double d0, double d1, double d2) {
NMS.enderTeleportTo(npc, d0, d1, d2, () -> super.enderTeleportTo(d0, d1, d2));
NMS.enderTeleportTo(npc, () -> super.enderTeleportTo(d0, d1, d2));
}
@Override

View File

@ -94,7 +94,7 @@ public class EnderDragonController extends MobEntityController {
@Override
public void enderTeleportTo(double d0, double d1, double d2) {
NMS.enderTeleportTo(npc, d0, d1, d2, () -> super.enderTeleportTo(d0, d1, d2));
NMS.enderTeleportTo(npc, () -> super.enderTeleportTo(d0, d1, d2));
}
@Override

View File

@ -110,7 +110,7 @@ public class EndermanController extends MobEntityController {
@Override
public void enderTeleportTo(double d0, double d1, double d2) {
NMS.enderTeleportTo(npc, d0, d1, d2, () -> super.enderTeleportTo(d0, d1, d2));
NMS.enderTeleportTo(npc, () -> super.enderTeleportTo(d0, d1, d2));
}
@Override

View File

@ -110,7 +110,7 @@ public class EndermiteController extends MobEntityController {
@Override
public void enderTeleportTo(double d0, double d1, double d2) {
NMS.enderTeleportTo(npc, d0, d1, d2, () -> super.enderTeleportTo(d0, d1, d2));
NMS.enderTeleportTo(npc, () -> super.enderTeleportTo(d0, d1, d2));
}
@Override

View File

@ -97,7 +97,7 @@ public class EvokerController extends MobEntityController {
@Override
public void enderTeleportTo(double d0, double d1, double d2) {
NMS.enderTeleportTo(npc, d0, d1, d2, () -> super.enderTeleportTo(d0, d1, d2));
NMS.enderTeleportTo(npc, () -> super.enderTeleportTo(d0, d1, d2));
}
@Override

View File

@ -86,7 +86,7 @@ public class GhastController extends MobEntityController {
@Override
public void enderTeleportTo(double d0, double d1, double d2) {
NMS.enderTeleportTo(npc, d0, d1, d2, () -> super.enderTeleportTo(d0, d1, d2));
NMS.enderTeleportTo(npc, () -> super.enderTeleportTo(d0, d1, d2));
}
@Override

View File

@ -96,7 +96,7 @@ public class GiantController extends MobEntityController {
@Override
public void enderTeleportTo(double d0, double d1, double d2) {
NMS.enderTeleportTo(npc, d0, d1, d2, () -> super.enderTeleportTo(d0, d1, d2));
NMS.enderTeleportTo(npc, () -> super.enderTeleportTo(d0, d1, d2));
}
@Override

View File

@ -97,7 +97,7 @@ public class GuardianController extends MobEntityController {
@Override
public void enderTeleportTo(double d0, double d1, double d2) {
NMS.enderTeleportTo(npc, d0, d1, d2, () -> super.enderTeleportTo(d0, d1, d2));
NMS.enderTeleportTo(npc, () -> super.enderTeleportTo(d0, d1, d2));
}
@Override

View File

@ -97,7 +97,7 @@ public class GuardianElderController extends MobEntityController {
@Override
public void enderTeleportTo(double d0, double d1, double d2) {
NMS.enderTeleportTo(npc, d0, d1, d2, () -> super.enderTeleportTo(d0, d1, d2));
NMS.enderTeleportTo(npc, () -> super.enderTeleportTo(d0, d1, d2));
}
@Override

View File

@ -119,7 +119,7 @@ public class HorseController extends MobEntityController {
@Override
public void enderTeleportTo(double d0, double d1, double d2) {
NMS.enderTeleportTo(npc, d0, d1, d2, () -> super.enderTeleportTo(d0, d1, d2));
NMS.enderTeleportTo(npc, () -> super.enderTeleportTo(d0, d1, d2));
}
@Override

View File

@ -119,7 +119,7 @@ public class HorseDonkeyController extends MobEntityController {
@Override
public void enderTeleportTo(double d0, double d1, double d2) {
NMS.enderTeleportTo(npc, d0, d1, d2, () -> super.enderTeleportTo(d0, d1, d2));
NMS.enderTeleportTo(npc, () -> super.enderTeleportTo(d0, d1, d2));
}
@Override

View File

@ -119,7 +119,7 @@ public class HorseMuleController extends MobEntityController {
@Override
public void enderTeleportTo(double d0, double d1, double d2) {
NMS.enderTeleportTo(npc, d0, d1, d2, () -> super.enderTeleportTo(d0, d1, d2));
NMS.enderTeleportTo(npc, () -> super.enderTeleportTo(d0, d1, d2));
}
@Override

View File

@ -120,7 +120,7 @@ public class HorseSkeletonController extends MobEntityController {
@Override
public void enderTeleportTo(double d0, double d1, double d2) {
NMS.enderTeleportTo(npc, d0, d1, d2, () -> super.enderTeleportTo(d0, d1, d2));
NMS.enderTeleportTo(npc, () -> super.enderTeleportTo(d0, d1, d2));
}
@Override

View File

@ -120,7 +120,7 @@ public class HorseZombieController extends MobEntityController {
@Override
public void enderTeleportTo(double d0, double d1, double d2) {
NMS.enderTeleportTo(npc, d0, d1, d2, () -> super.enderTeleportTo(d0, d1, d2));
NMS.enderTeleportTo(npc, () -> super.enderTeleportTo(d0, d1, d2));
}
@Override

View File

@ -96,7 +96,7 @@ public class IronGolemController extends MobEntityController {
@Override
public void enderTeleportTo(double d0, double d1, double d2) {
NMS.enderTeleportTo(npc, d0, d1, d2, () -> super.enderTeleportTo(d0, d1, d2));
NMS.enderTeleportTo(npc, () -> super.enderTeleportTo(d0, d1, d2));
}
@Override

View File

@ -119,7 +119,7 @@ public class LlamaController extends MobEntityController {
@Override
public void enderTeleportTo(double d0, double d1, double d2) {
NMS.enderTeleportTo(npc, d0, d1, d2, () -> super.enderTeleportTo(d0, d1, d2));
NMS.enderTeleportTo(npc, () -> super.enderTeleportTo(d0, d1, d2));
}
@Override

View File

@ -117,7 +117,7 @@ public class MagmaCubeController extends MobEntityController {
@Override
public void enderTeleportTo(double d0, double d1, double d2) {
NMS.enderTeleportTo(npc, d0, d1, d2, () -> super.enderTeleportTo(d0, d1, d2));
NMS.enderTeleportTo(npc, () -> super.enderTeleportTo(d0, d1, d2));
}
@Override

View File

@ -117,7 +117,7 @@ public class MushroomCowController extends MobEntityController {
@Override
public void enderTeleportTo(double d0, double d1, double d2) {
NMS.enderTeleportTo(npc, d0, d1, d2, () -> super.enderTeleportTo(d0, d1, d2));
NMS.enderTeleportTo(npc, () -> super.enderTeleportTo(d0, d1, d2));
}
@Override

View File

@ -114,7 +114,7 @@ public class OcelotController extends MobEntityController {
@Override
public void enderTeleportTo(double d0, double d1, double d2) {
NMS.enderTeleportTo(npc, d0, d1, d2, () -> super.enderTeleportTo(d0, d1, d2));
NMS.enderTeleportTo(npc, () -> super.enderTeleportTo(d0, d1, d2));
}
@Override

View File

@ -115,7 +115,7 @@ public class PigController extends MobEntityController {
@Override
public void enderTeleportTo(double d0, double d1, double d2) {
NMS.enderTeleportTo(npc, d0, d1, d2, () -> super.enderTeleportTo(d0, d1, d2));
NMS.enderTeleportTo(npc, () -> super.enderTeleportTo(d0, d1, d2));
}
@Override

View File

@ -97,7 +97,7 @@ public class PigZombieController extends MobEntityController {
@Override
public void enderTeleportTo(double d0, double d1, double d2) {
NMS.enderTeleportTo(npc, d0, d1, d2, () -> super.enderTeleportTo(d0, d1, d2));
NMS.enderTeleportTo(npc, () -> super.enderTeleportTo(d0, d1, d2));
}
@Override

View File

@ -92,7 +92,7 @@ public class PolarBearController extends MobEntityController {
@Override
public void enderTeleportTo(double d0, double d1, double d2) {
NMS.enderTeleportTo(npc, d0, d1, d2, () -> super.enderTeleportTo(d0, d1, d2));
NMS.enderTeleportTo(npc, () -> super.enderTeleportTo(d0, d1, d2));
}
@Override

View File

@ -109,7 +109,7 @@ public class RabbitController extends MobEntityController {
@Override
public void enderTeleportTo(double d0, double d1, double d2) {
NMS.enderTeleportTo(npc, d0, d1, d2, () -> super.enderTeleportTo(d0, d1, d2));
NMS.enderTeleportTo(npc, () -> super.enderTeleportTo(d0, d1, d2));
}
@Override

View File

@ -107,7 +107,7 @@ public class SheepController extends MobEntityController {
@Override
public void enderTeleportTo(double d0, double d1, double d2) {
NMS.enderTeleportTo(npc, d0, d1, d2, () -> super.enderTeleportTo(d0, d1, d2));
NMS.enderTeleportTo(npc, () -> super.enderTeleportTo(d0, d1, d2));
}
@Override

View File

@ -107,7 +107,7 @@ public class ShulkerController extends MobEntityController {
@Override
public void enderTeleportTo(double d0, double d1, double d2) {
NMS.enderTeleportTo(npc, d0, d1, d2, () -> super.enderTeleportTo(d0, d1, d2));
NMS.enderTeleportTo(npc, () -> super.enderTeleportTo(d0, d1, d2));
}
@Override

View File

@ -96,7 +96,7 @@ public class SilverfishController extends MobEntityController {
@Override
public void enderTeleportTo(double d0, double d1, double d2) {
NMS.enderTeleportTo(npc, d0, d1, d2, () -> super.enderTeleportTo(d0, d1, d2));
NMS.enderTeleportTo(npc, () -> super.enderTeleportTo(d0, d1, d2));
}
@Override

View File

@ -96,7 +96,7 @@ public class SkeletonController extends MobEntityController {
@Override
public void enderTeleportTo(double d0, double d1, double d2) {
NMS.enderTeleportTo(npc, d0, d1, d2, () -> super.enderTeleportTo(d0, d1, d2));
NMS.enderTeleportTo(npc, () -> super.enderTeleportTo(d0, d1, d2));
}
@Override

View File

@ -96,7 +96,7 @@ public class SkeletonStrayController extends MobEntityController {
@Override
public void enderTeleportTo(double d0, double d1, double d2) {
NMS.enderTeleportTo(npc, d0, d1, d2, () -> super.enderTeleportTo(d0, d1, d2));
NMS.enderTeleportTo(npc, () -> super.enderTeleportTo(d0, d1, d2));
}
@Override

View File

@ -96,7 +96,7 @@ public class SkeletonWitherController extends MobEntityController {
@Override
public void enderTeleportTo(double d0, double d1, double d2) {
NMS.enderTeleportTo(npc, d0, d1, d2, () -> super.enderTeleportTo(d0, d1, d2));
NMS.enderTeleportTo(npc, () -> super.enderTeleportTo(d0, d1, d2));
}
@Override

View File

@ -118,7 +118,7 @@ public class SlimeController extends MobEntityController {
@Override
public void enderTeleportTo(double d0, double d1, double d2) {
NMS.enderTeleportTo(npc, d0, d1, d2, () -> super.enderTeleportTo(d0, d1, d2));
NMS.enderTeleportTo(npc, () -> super.enderTeleportTo(d0, d1, d2));
}
@Override

View File

@ -96,7 +96,7 @@ public class SnowmanController extends MobEntityController {
@Override
public void enderTeleportTo(double d0, double d1, double d2) {
NMS.enderTeleportTo(npc, d0, d1, d2, () -> super.enderTeleportTo(d0, d1, d2));
NMS.enderTeleportTo(npc, () -> super.enderTeleportTo(d0, d1, d2));
}
@Override

View File

@ -96,7 +96,7 @@ public class SpiderController extends MobEntityController {
@Override
public void enderTeleportTo(double d0, double d1, double d2) {
NMS.enderTeleportTo(npc, d0, d1, d2, () -> super.enderTeleportTo(d0, d1, d2));
NMS.enderTeleportTo(npc, () -> super.enderTeleportTo(d0, d1, d2));
}
@Override

View File

@ -96,7 +96,7 @@ public class SquidController extends MobEntityController {
@Override
public void enderTeleportTo(double d0, double d1, double d2) {
NMS.enderTeleportTo(npc, d0, d1, d2, () -> super.enderTeleportTo(d0, d1, d2));
NMS.enderTeleportTo(npc, () -> super.enderTeleportTo(d0, d1, d2));
}
@Override

View File

@ -84,7 +84,7 @@ public class VexController extends MobEntityController {
@Override
public void enderTeleportTo(double d0, double d1, double d2) {
NMS.enderTeleportTo(npc, d0, d1, d2, () -> super.enderTeleportTo(d0, d1, d2));
NMS.enderTeleportTo(npc, () -> super.enderTeleportTo(d0, d1, d2));
}
@Override

View File

@ -137,7 +137,7 @@ public class VillagerController extends MobEntityController {
@Override
public void enderTeleportTo(double d0, double d1, double d2) {
NMS.enderTeleportTo(npc, d0, d1, d2, () -> super.enderTeleportTo(d0, d1, d2));
NMS.enderTeleportTo(npc, () -> super.enderTeleportTo(d0, d1, d2));
}
@Override

View File

@ -108,7 +108,7 @@ public class VindicatorController extends MobEntityController {
@Override
public void enderTeleportTo(double d0, double d1, double d2) {
NMS.enderTeleportTo(npc, d0, d1, d2, () -> super.enderTeleportTo(d0, d1, d2));
NMS.enderTeleportTo(npc, () -> super.enderTeleportTo(d0, d1, d2));
}
@Override

View File

@ -96,7 +96,7 @@ public class WitchController extends MobEntityController {
@Override
public void enderTeleportTo(double d0, double d1, double d2) {
NMS.enderTeleportTo(npc, d0, d1, d2, () -> super.enderTeleportTo(d0, d1, d2));
NMS.enderTeleportTo(npc, () -> super.enderTeleportTo(d0, d1, d2));
}
@Override

View File

@ -86,7 +86,7 @@ public class WitherController extends MobEntityController {
@Override
public void enderTeleportTo(double d0, double d1, double d2) {
NMS.enderTeleportTo(npc, d0, d1, d2, () -> super.enderTeleportTo(d0, d1, d2));
NMS.enderTeleportTo(npc, () -> super.enderTeleportTo(d0, d1, d2));
}
@Override

View File

@ -110,7 +110,7 @@ public class WolfController extends MobEntityController {
@Override
public void enderTeleportTo(double d0, double d1, double d2) {
NMS.enderTeleportTo(npc, d0, d1, d2, () -> super.enderTeleportTo(d0, d1, d2));
NMS.enderTeleportTo(npc, () -> super.enderTeleportTo(d0, d1, d2));
}
@Override

View File

@ -96,7 +96,7 @@ public class ZombieController extends MobEntityController {
@Override
public void enderTeleportTo(double d0, double d1, double d2) {
NMS.enderTeleportTo(npc, d0, d1, d2, () -> super.enderTeleportTo(d0, d1, d2));
NMS.enderTeleportTo(npc, () -> super.enderTeleportTo(d0, d1, d2));
}
@Override

View File

@ -96,7 +96,7 @@ public class ZombieHuskController extends MobEntityController {
@Override
public void enderTeleportTo(double d0, double d1, double d2) {
NMS.enderTeleportTo(npc, d0, d1, d2, () -> super.enderTeleportTo(d0, d1, d2));
NMS.enderTeleportTo(npc, () -> super.enderTeleportTo(d0, d1, d2));
}
@Override

View File

@ -96,7 +96,7 @@ public class ZombieVillagerController extends MobEntityController {
@Override
public void enderTeleportTo(double d0, double d1, double d2) {
NMS.enderTeleportTo(npc, d0, d1, d2, () -> super.enderTeleportTo(d0, d1, d2));
NMS.enderTeleportTo(npc, () -> super.enderTeleportTo(d0, d1, d2));
}
@Override

View File

@ -99,7 +99,7 @@ public class BatController extends MobEntityController {
@Override
public void enderTeleportTo(double d0, double d1, double d2) {
NMS.enderTeleportTo(npc, d0, d1, d2, () -> super.enderTeleportTo(d0, d1, d2));
NMS.enderTeleportTo(npc, () -> super.enderTeleportTo(d0, d1, d2));
}
@Override

View File

@ -96,7 +96,7 @@ public class BlazeController extends MobEntityController {
@Override
public void enderTeleportTo(double d0, double d1, double d2) {
NMS.enderTeleportTo(npc, d0, d1, d2, () -> super.enderTeleportTo(d0, d1, d2));
NMS.enderTeleportTo(npc, () -> super.enderTeleportTo(d0, d1, d2));
}
@Override

View File

@ -121,7 +121,7 @@ public class CaveSpiderController extends MobEntityController {
@Override
public void enderTeleportTo(double d0, double d1, double d2) {
NMS.enderTeleportTo(npc, d0, d1, d2, () -> super.enderTeleportTo(d0, d1, d2));
NMS.enderTeleportTo(npc, () -> super.enderTeleportTo(d0, d1, d2));
}
@Override

View File

@ -132,7 +132,7 @@ public class ChickenController extends MobEntityController {
@Override
public void enderTeleportTo(double d0, double d1, double d2) {
NMS.enderTeleportTo(npc, d0, d1, d2, () -> super.enderTeleportTo(d0, d1, d2));
NMS.enderTeleportTo(npc, () -> super.enderTeleportTo(d0, d1, d2));
}
@Override

View File

@ -147,7 +147,7 @@ public class CowController extends MobEntityController {
@Override
public void enderTeleportTo(double d0, double d1, double d2) {
NMS.enderTeleportTo(npc, d0, d1, d2, () -> super.enderTeleportTo(d0, d1, d2));
NMS.enderTeleportTo(npc, () -> super.enderTeleportTo(d0, d1, d2));
}
@Override

View File

@ -123,7 +123,7 @@ public class CreeperController extends MobEntityController {
@Override
public void enderTeleportTo(double d0, double d1, double d2) {
NMS.enderTeleportTo(npc, d0, d1, d2, () -> super.enderTeleportTo(d0, d1, d2));
NMS.enderTeleportTo(npc, () -> super.enderTeleportTo(d0, d1, d2));
}
@Override

View File

@ -95,7 +95,7 @@ public class EnderDragonController extends MobEntityController {
@Override
public void enderTeleportTo(double d0, double d1, double d2) {
NMS.enderTeleportTo(npc, d0, d1, d2, () -> super.enderTeleportTo(d0, d1, d2));
NMS.enderTeleportTo(npc, () -> super.enderTeleportTo(d0, d1, d2));
}
@Override

View File

@ -120,7 +120,7 @@ public class EndermanController extends MobEntityController {
@Override
public void enderTeleportTo(double d0, double d1, double d2) {
NMS.enderTeleportTo(npc, d0, d1, d2, () -> super.enderTeleportTo(d0, d1, d2));
NMS.enderTeleportTo(npc, () -> super.enderTeleportTo(d0, d1, d2));
}
@Override

View File

@ -120,7 +120,7 @@ public class EndermiteController extends MobEntityController {
@Override
public void enderTeleportTo(double d0, double d1, double d2) {
NMS.enderTeleportTo(npc, d0, d1, d2, () -> super.enderTeleportTo(d0, d1, d2));
NMS.enderTeleportTo(npc, () -> super.enderTeleportTo(d0, d1, d2));
}
@Override

View File

@ -107,7 +107,7 @@ public class EvokerController extends MobEntityController {
@Override
public void enderTeleportTo(double d0, double d1, double d2) {
NMS.enderTeleportTo(npc, d0, d1, d2, () -> super.enderTeleportTo(d0, d1, d2));
NMS.enderTeleportTo(npc, () -> super.enderTeleportTo(d0, d1, d2));
}
@Override

View File

@ -87,7 +87,7 @@ public class GhastController extends MobEntityController {
@Override
public void enderTeleportTo(double d0, double d1, double d2) {
NMS.enderTeleportTo(npc, d0, d1, d2, () -> super.enderTeleportTo(d0, d1, d2));
NMS.enderTeleportTo(npc, () -> super.enderTeleportTo(d0, d1, d2));
}
@Override

View File

@ -106,7 +106,7 @@ public class GiantController extends MobEntityController {
@Override
public void enderTeleportTo(double d0, double d1, double d2) {
NMS.enderTeleportTo(npc, d0, d1, d2, () -> super.enderTeleportTo(d0, d1, d2));
NMS.enderTeleportTo(npc, () -> super.enderTeleportTo(d0, d1, d2));
}
@Override

View File

@ -107,7 +107,7 @@ public class GuardianController extends MobEntityController {
@Override
public void enderTeleportTo(double d0, double d1, double d2) {
NMS.enderTeleportTo(npc, d0, d1, d2, () -> super.enderTeleportTo(d0, d1, d2));
NMS.enderTeleportTo(npc, () -> super.enderTeleportTo(d0, d1, d2));
}
@Override

View File

@ -107,7 +107,7 @@ public class GuardianElderController extends MobEntityController {
@Override
public void enderTeleportTo(double d0, double d1, double d2) {
NMS.enderTeleportTo(npc, d0, d1, d2, () -> super.enderTeleportTo(d0, d1, d2));
NMS.enderTeleportTo(npc, () -> super.enderTeleportTo(d0, d1, d2));
}
@Override

View File

@ -144,7 +144,7 @@ public class HorseController extends MobEntityController {
@Override
public void enderTeleportTo(double d0, double d1, double d2) {
NMS.enderTeleportTo(npc, d0, d1, d2, () -> super.enderTeleportTo(d0, d1, d2));
NMS.enderTeleportTo(npc, () -> super.enderTeleportTo(d0, d1, d2));
}
@Override

View File

@ -144,7 +144,7 @@ public class HorseDonkeyController extends MobEntityController {
@Override
public void enderTeleportTo(double d0, double d1, double d2) {
NMS.enderTeleportTo(npc, d0, d1, d2, () -> super.enderTeleportTo(d0, d1, d2));
NMS.enderTeleportTo(npc, () -> super.enderTeleportTo(d0, d1, d2));
}
@Override

View File

@ -144,7 +144,7 @@ public class HorseMuleController extends MobEntityController {
@Override
public void enderTeleportTo(double d0, double d1, double d2) {
NMS.enderTeleportTo(npc, d0, d1, d2, () -> super.enderTeleportTo(d0, d1, d2));
NMS.enderTeleportTo(npc, () -> super.enderTeleportTo(d0, d1, d2));
}
@Override

Some files were not shown because too many files have changed in this diff Show More