/* * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ package com.gmail.filoghost.holographicdisplays.nms.v1_8_R3; import java.util.Collection; import org.bukkit.EntityEffect; import org.bukkit.Location; import org.bukkit.craftbukkit.v1_8_R3.CraftServer; import org.bukkit.craftbukkit.v1_8_R3.entity.CraftSlime; import org.bukkit.entity.Entity; import org.bukkit.event.player.PlayerTeleportEvent.TeleportCause; import org.bukkit.potion.PotionEffect; import org.bukkit.util.Vector; public class CraftNMSSlime extends CraftSlime { public CraftNMSSlime(CraftServer server, EntityNMSSlime entity) { super(server, entity); } // Disallow all the bukkit methods. @Override public void remove() { // Cannot be removed, this is the most important to override. } // Methods from LivingEntity class @Override public boolean addPotionEffect(PotionEffect effect) { return false; } @Override public boolean addPotionEffect(PotionEffect effect, boolean param) { return false; } @Override public boolean addPotionEffects(Collection effects) { return false; } @Override public void setRemoveWhenFarAway(boolean remove) { } // Methods from Entity @Override public void setVelocity(Vector vel) { } @Override public boolean teleport(Location loc) { return false; } @Override public boolean teleport(Entity entity) { return false; } @Override public boolean teleport(Location loc, TeleportCause cause) { return false; } @Override public boolean teleport(Entity entity, TeleportCause cause) { return false; } @Override public void setFireTicks(int ticks) { } @Override public boolean setPassenger(Entity entity) { return false; } @Override public boolean eject() { return false; } @Override public boolean leaveVehicle() { return false; } @Override public void playEffect(EntityEffect effect) { } @Override public void setCustomName(String name) { } @Override public void setCustomNameVisible(boolean flag) { } // Methods from Slime @Override public void setSize(int size) { } }