Removed .equals for all the good it does to remove it .-.

This commit is contained in:
Andrew 2013-11-06 05:08:16 +13:00
parent d4ae115d19
commit abbdf4232a
4 changed files with 0 additions and 36 deletions

View File

@ -280,30 +280,6 @@ public class Disguise {
return this;
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
Disguise other = (Disguise) obj;
if (disguiseType != other.disguiseType)
return false;
if (hearSelfDisguise != other.hearSelfDisguise)
return false;
if (replaceSounds != other.replaceSounds)
return false;
if (velocitySent != other.velocitySent)
return false;
if (viewSelfDisguise != other.viewSelfDisguise)
return false;
if (!watcher.equals(other.watcher))
return false;
return true;
}
/**
* Get the disguised entity
*/

View File

@ -138,10 +138,6 @@ public class FlagWatcher {
return newList;
}
public boolean equals(FlagWatcher flagWatcher) {
return entityValues.equals(flagWatcher.entityValues);
}
public org.bukkit.inventory.ItemStack[] getArmor() {
org.bukkit.inventory.ItemStack[] armor = new org.bukkit.inventory.ItemStack[4];
for (int i = 0; i < 4; i++) {

View File

@ -57,10 +57,6 @@ public class MobDisguise extends Disguise {
}
public boolean equals(MobDisguise mobDisguise) {
return isAdult == mobDisguise.isAdult && this.equals(mobDisguise);
}
public boolean isAdult() {
if (getWatcher() != null) {
if (getWatcher() instanceof AgeableWatcher)

View File

@ -19,10 +19,6 @@ public class PlayerDisguise extends Disguise {
return disguise;
}
public boolean equals(PlayerDisguise playerDisguise) {
return getName().equals(playerDisguise.getName()) && this.equals(playerDisguise);
}
public String getName() {
return playerName;
}