Renamed LibsBaseWatcher to FlagWatcher

This commit is contained in:
Andrew 2013-05-19 15:54:44 +12:00
parent eb33f9dfae
commit 67256c118e
9 changed files with 19 additions and 19 deletions

View File

@ -20,7 +20,7 @@ import org.bukkit.entity.Player;
public class Disguise { public class Disguise {
protected DisguiseType disguiseType; protected DisguiseType disguiseType;
private Entity entity; private Entity entity;
private LibsBaseWatcher watcher; private FlagWatcher watcher;
protected Disguise(DisguiseType newType) { protected Disguise(DisguiseType newType) {
disguiseType = newType; disguiseType = newType;
@ -84,7 +84,7 @@ public class Disguise {
} }
Class watcherClass = Class.forName("me.libraryaddict.disguise.DisguiseTypes.Watchers." + name + "Watcher"); Class watcherClass = Class.forName("me.libraryaddict.disguise.DisguiseTypes.Watchers." + name + "Watcher");
Constructor<?> contructor = watcherClass.getDeclaredConstructor(int.class); Constructor<?> contructor = watcherClass.getDeclaredConstructor(int.class);
watcher = (LibsBaseWatcher) contructor.newInstance(entityId); watcher = (FlagWatcher) contructor.newInstance(entityId);
} catch (Exception ex) { } catch (Exception ex) {
// There is no watcher for this entity // There is no watcher for this entity
} }
@ -101,7 +101,7 @@ public class Disguise {
return disguiseType; return disguiseType;
} }
public LibsBaseWatcher getWatcher() { public FlagWatcher getWatcher() {
return watcher; return watcher;
} }

View File

@ -13,7 +13,7 @@ import org.bukkit.entity.Player;
import net.minecraft.server.v1_5_R3.Packet40EntityMetadata; import net.minecraft.server.v1_5_R3.Packet40EntityMetadata;
import net.minecraft.server.v1_5_R3.WatchableObject; import net.minecraft.server.v1_5_R3.WatchableObject;
public abstract class LibsBaseWatcher { public abstract class FlagWatcher {
private static HashMap<Class, Integer> classTypes = new HashMap<Class, Integer>(); private static HashMap<Class, Integer> classTypes = new HashMap<Class, Integer>();
static { static {
@ -25,7 +25,7 @@ public abstract class LibsBaseWatcher {
private int entityId; private int entityId;
private HashMap<Integer, Object> entityValues = new HashMap<Integer, Object>(); private HashMap<Integer, Object> entityValues = new HashMap<Integer, Object>();
protected LibsBaseWatcher(int entityId) { protected FlagWatcher(int entityId) {
this.entityId = entityId; this.entityId = entityId;
} }

View File

@ -1,8 +1,8 @@
package me.libraryaddict.disguise.DisguiseTypes.Watchers; package me.libraryaddict.disguise.DisguiseTypes.Watchers;
import me.libraryaddict.disguise.DisguiseTypes.LibsBaseWatcher; import me.libraryaddict.disguise.DisguiseTypes.FlagWatcher;
public class AgeableWatcher extends LibsBaseWatcher { public class AgeableWatcher extends FlagWatcher {
public AgeableWatcher(int entityId) { public AgeableWatcher(int entityId) {
super(entityId); super(entityId);

View File

@ -1,8 +1,8 @@
package me.libraryaddict.disguise.DisguiseTypes.Watchers; package me.libraryaddict.disguise.DisguiseTypes.Watchers;
import me.libraryaddict.disguise.DisguiseTypes.LibsBaseWatcher; import me.libraryaddict.disguise.DisguiseTypes.FlagWatcher;
public class BlazeWatcher extends LibsBaseWatcher { public class BlazeWatcher extends FlagWatcher {
public BlazeWatcher(int entityId) { public BlazeWatcher(int entityId) {
super(entityId); super(entityId);

View File

@ -1,8 +1,8 @@
package me.libraryaddict.disguise.DisguiseTypes.Watchers; package me.libraryaddict.disguise.DisguiseTypes.Watchers;
import me.libraryaddict.disguise.DisguiseTypes.LibsBaseWatcher; import me.libraryaddict.disguise.DisguiseTypes.FlagWatcher;
public class CreeperWatcher extends LibsBaseWatcher { public class CreeperWatcher extends FlagWatcher {
public CreeperWatcher(int entityId) { public CreeperWatcher(int entityId) {
super(entityId); super(entityId);

View File

@ -1,8 +1,8 @@
package me.libraryaddict.disguise.DisguiseTypes.Watchers; package me.libraryaddict.disguise.DisguiseTypes.Watchers;
import me.libraryaddict.disguise.DisguiseTypes.LibsBaseWatcher; import me.libraryaddict.disguise.DisguiseTypes.FlagWatcher;
public class EnderDragonWatcher extends LibsBaseWatcher { public class EnderDragonWatcher extends FlagWatcher {
public EnderDragonWatcher(int entityId) { public EnderDragonWatcher(int entityId) {
super(entityId); super(entityId);

View File

@ -1,8 +1,8 @@
package me.libraryaddict.disguise.DisguiseTypes.Watchers; package me.libraryaddict.disguise.DisguiseTypes.Watchers;
import me.libraryaddict.disguise.DisguiseTypes.LibsBaseWatcher; import me.libraryaddict.disguise.DisguiseTypes.FlagWatcher;
public class EndermanWatcher extends LibsBaseWatcher { public class EndermanWatcher extends FlagWatcher {
public EndermanWatcher(int entityId) { public EndermanWatcher(int entityId) {
super(entityId); super(entityId);

View File

@ -1,8 +1,8 @@
package me.libraryaddict.disguise.DisguiseTypes.Watchers; package me.libraryaddict.disguise.DisguiseTypes.Watchers;
import me.libraryaddict.disguise.DisguiseTypes.LibsBaseWatcher; import me.libraryaddict.disguise.DisguiseTypes.FlagWatcher;
public class GhastWatcher extends LibsBaseWatcher { public class GhastWatcher extends FlagWatcher {
public GhastWatcher(int entityId) { public GhastWatcher(int entityId) {
super(entityId); super(entityId);

View File

@ -2,9 +2,9 @@ package me.libraryaddict.disguise.DisguiseTypes.Watchers;
import java.util.Random; import java.util.Random;
import me.libraryaddict.disguise.DisguiseTypes.LibsBaseWatcher; import me.libraryaddict.disguise.DisguiseTypes.FlagWatcher;
public class SlimeWatcher extends LibsBaseWatcher { public class SlimeWatcher extends FlagWatcher {
public SlimeWatcher(int entityId) { public SlimeWatcher(int entityId) {
super(entityId); super(entityId);