Package me.hsgamer.topper.agent.holder
Class AgentDataHolder<K,V>
- java.lang.Object
-
- me.hsgamer.topper.core.DataHolder<K,V>
-
- me.hsgamer.topper.agent.holder.AgentDataHolder<K,V>
-
public class AgentDataHolder<K,V> extends DataHolder<K,V>
-
-
Constructor Summary
Constructors Constructor Description AgentDataHolder(String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAgent(Agent<K,V> agent)protected voidonCreate(DataEntry<K,V> entry)protected voidonRemove(DataEntry<K,V> entry)protected voidonUpdate(DataEntry<K,V> entry)voidregister()voidremoveAgent(Agent<K,V> agent)voidunregister()-
Methods inherited from class me.hsgamer.topper.core.DataHolder
clear, getDefaultValue, getEntry, getEntryMap, getName, getOrCreateEntry, removeEntry
-
-
-
-
Constructor Detail
-
AgentDataHolder
public AgentDataHolder(String name)
-
-
Method Detail
-
onCreate
protected final void onCreate(DataEntry<K,V> entry)
- Overrides:
onCreatein classDataHolder<K,V>
-
onUpdate
protected final void onUpdate(DataEntry<K,V> entry)
- Overrides:
onUpdatein classDataHolder<K,V>
-
onRemove
protected final void onRemove(DataEntry<K,V> entry)
- Overrides:
onRemovein classDataHolder<K,V>
-
register
public final void register()
-
unregister
public final void unregister()
-
-