Package me.bimmr.bimmcore.reflection
Class Viewer
- java.lang.Object
-
- me.bimmr.bimmcore.reflection.Viewer
-
- All Implemented Interfaces:
org.bukkit.event.Listener
public abstract class Viewer extends java.lang.Object implements org.bukkit.event.Listener
A Utilities class to handle viewers
-
-
Method Summary
Modifier and Type Method Description void
addPlayer(java.lang.String player)
void
destroy()
java.util.List<java.lang.String>
getPlayers()
boolean
isAutoUpdate()
boolean
isViewing(java.lang.String player)
abstract void
onAddToView(org.bukkit.entity.Player paramPlayer)
void
onJoin(org.bukkit.event.player.PlayerJoinEvent pje)
void
onLeave(org.bukkit.event.player.PlayerQuitEvent pqe)
abstract void
onRemoveFromView(org.bukkit.entity.Player paramPlayer)
void
removePlayer(java.lang.String player)
void
setAutoUpdate(boolean autoUpdate)
void
update()
abstract void
update(org.bukkit.entity.Player paramPlayer)
-
-
-
Method Detail
-
update
public abstract void update(org.bukkit.entity.Player paramPlayer)
-
onAddToView
public abstract void onAddToView(org.bukkit.entity.Player paramPlayer)
-
onRemoveFromView
public abstract void onRemoveFromView(org.bukkit.entity.Player paramPlayer)
-
destroy
public void destroy()
-
update
public void update()
-
onJoin
public void onJoin(org.bukkit.event.player.PlayerJoinEvent pje)
-
onLeave
public void onLeave(org.bukkit.event.player.PlayerQuitEvent pqe)
-
getPlayers
public java.util.List<java.lang.String> getPlayers()
-
isAutoUpdate
public boolean isAutoUpdate()
-
setAutoUpdate
public void setAutoUpdate(boolean autoUpdate)
-
addPlayer
public void addPlayer(java.lang.String player)
-
removePlayer
public void removePlayer(java.lang.String player)
-
isViewing
public boolean isViewing(java.lang.String player)
-
-