Make ender slime teleport event extend the ender teleport event
Helps with mod compat as its an ender thing
package slimeknights.tconstruct.library.events.teleport;
import lombok.Getter;
-import net.minecraft.entity.Entity;
+import net.minecraft.entity.LivingEntity;
import net.minecraftforge.event.entity.living.EntityTeleportEvent;
import net.minecraftforge.eventbus.api.Cancelable;
import slimeknights.tconstruct.world.entity.EnderSlimeEntity;
/* Fired when an ender slime teleport or teleports another entity */
@Cancelable
-public class EnderSlimeTeleportEvent extends EntityTeleportEvent {
+public class EnderSlimeTeleportEvent extends EntityTeleportEvent.EnderEntity {
/** Gets the slime that caused this teleport. If this is the same as {@link #getEntity()} then the slime is teleporting itself */
@Getter
private final EnderSlimeEntity slime;
- public EnderSlimeTeleportEvent(Entity entity, double targetX, double targetY, double targetZ, EnderSlimeEntity slime) {
+ public EnderSlimeTeleportEvent(LivingEntity entity, double targetX, double targetY, double targetZ, EnderSlimeEntity slime) {
super(entity, targetX, targetY, targetZ);
this.slime = slime;
}
