Changed a methods to use the same version with paperclip and spigot.

This commit is contained in:
FabioZumbi12 2017-06-13 00:22:04 -03:00 committed by David Berdik
parent 7a71058949
commit 1b822d1bde
4 changed files with 5 additions and 5 deletions

View File

@ -2,7 +2,7 @@ package net.theprogrammersworld.herobrine.nms.entity;
public interface CustomEntity { public interface CustomEntity {
void kill(); void killCustom();
MobType getMobType(); MobType getMobType();

View File

@ -47,7 +47,7 @@ public class CustomSkeleton extends EntitySkeleton implements CustomEntity {
@Override @Override
@SuppressWarnings("deprecation") @SuppressWarnings("deprecation")
public void kill() { public void killCustom() {
for (int i = 1; i <= 2500; ++i) { for (int i = 1; i <= 2500; ++i) {
if (Herobrine.getPluginCore().getConfigDB().npc.contains("npc.Demon.Drops." + Integer.toString(i))) { if (Herobrine.getPluginCore().getConfigDB().npc.contains("npc.Demon.Drops." + Integer.toString(i))) {
final int chance = new Random().nextInt(100); final int chance = new Random().nextInt(100);

View File

@ -60,7 +60,7 @@ public class CustomZombie extends EntityZombie implements CustomEntity {
@Override @Override
@SuppressWarnings("deprecation") @SuppressWarnings("deprecation")
public void kill() { public void killCustom() {
String mobS = ""; String mobS = "";
if (mobType == MobType.ARTIFACT_GUARDIAN) { if (mobType == MobType.ARTIFACT_GUARDIAN) {
mobS = "Guardian"; mobS = "Guardian";

View File

@ -35,7 +35,7 @@ public class EntityManager {
} }
public void removeMob(final int id) { public void removeMob(final int id) {
mobList.get(new Integer(id)).kill(); mobList.get(new Integer(id)).killCustom();
mobList.remove(new Integer(id)); mobList.remove(new Integer(id));
} }
@ -45,7 +45,7 @@ public class EntityManager {
public void killAllMobs() { public void killAllMobs() {
for (final Map.Entry<Integer, CustomEntity> s : mobList.entrySet()) { for (final Map.Entry<Integer, CustomEntity> s : mobList.entrySet()) {
s.getValue().kill(); s.getValue().killCustom();
} }
removeAllMobs(); removeAllMobs();
} }