Changed a methods to use the same version with paperclip and spigot.
This commit is contained in:
parent
7a71058949
commit
1b822d1bde
@ -2,7 +2,7 @@ package net.theprogrammersworld.herobrine.nms.entity;
|
||||
|
||||
public interface CustomEntity {
|
||||
|
||||
void kill();
|
||||
void killCustom();
|
||||
|
||||
MobType getMobType();
|
||||
|
||||
|
@ -47,7 +47,7 @@ public class CustomSkeleton extends EntitySkeleton implements CustomEntity {
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("deprecation")
|
||||
public void kill() {
|
||||
public void killCustom() {
|
||||
for (int i = 1; i <= 2500; ++i) {
|
||||
if (Herobrine.getPluginCore().getConfigDB().npc.contains("npc.Demon.Drops." + Integer.toString(i))) {
|
||||
final int chance = new Random().nextInt(100);
|
||||
|
@ -60,7 +60,7 @@ public class CustomZombie extends EntityZombie implements CustomEntity {
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("deprecation")
|
||||
public void kill() {
|
||||
public void killCustom() {
|
||||
String mobS = "";
|
||||
if (mobType == MobType.ARTIFACT_GUARDIAN) {
|
||||
mobS = "Guardian";
|
||||
|
@ -35,7 +35,7 @@ public class EntityManager {
|
||||
}
|
||||
|
||||
public void removeMob(final int id) {
|
||||
mobList.get(new Integer(id)).kill();
|
||||
mobList.get(new Integer(id)).killCustom();
|
||||
mobList.remove(new Integer(id));
|
||||
}
|
||||
|
||||
@ -45,7 +45,7 @@ public class EntityManager {
|
||||
|
||||
public void killAllMobs() {
|
||||
for (final Map.Entry<Integer, CustomEntity> s : mobList.entrySet()) {
|
||||
s.getValue().kill();
|
||||
s.getValue().killCustom();
|
||||
}
|
||||
removeAllMobs();
|
||||
}
|
||||
|
Reference in New Issue
Block a user