private static class ChangeSet.PlayerChange extends ChangeSet.Change
| Modifier and Type | Field and Description |
|---|---|
private ServerPlayer |
player |
see| Constructor and Description |
|---|
PlayerChange(ChangeSet.See see,
ServerPlayer player)
Build a new PlayerChange.
|
| Modifier and Type | Method and Description |
|---|---|
void |
attachToElement(org.w3c.dom.Element element)
Some changes can not be directly specialized, but need to be
directly attached to an element.
|
int |
getPriority()
Gets the sort priority.
|
boolean |
isNotifiable(ServerPlayer serverPlayer)
Should a player be notified of this Change?
|
org.w3c.dom.Element |
toElement(ServerPlayer serverPlayer,
org.w3c.dom.Document doc)
Specialize a Change for a particular player.
|
java.lang.String |
toString() |
consequences, convertsToElement, isPerhapsNotifiable, matchesprivate final ServerPlayer player
public PlayerChange(ChangeSet.See see, ServerPlayer player)
see - The visibility of this change.player - The Player to add.public int getPriority()
getPriority in class ChangeSet.Changepublic boolean isNotifiable(ServerPlayer serverPlayer)
isNotifiable in class ChangeSet.ChangeserverPlayer - The ServerPlayer to consider.Change should be sent.public org.w3c.dom.Element toElement(ServerPlayer serverPlayer, org.w3c.dom.Document doc)
toElement in class ChangeSet.ChangeserverPlayer - The ServerPlayer to update.doc - The owner Document to build the element in.Element encapsulating this change.public void attachToElement(org.w3c.dom.Element element)
attachToElement in class ChangeSet.Changeelement - The Element to attach to.public java.lang.String toString()
toString in class java.lang.Object