|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mudcraft.bukkit.socials.Social
public class Social
Represents a pre-configured emote a player can perform.
Constructor Summary | |
---|---|
Social()
Constructs a new Social instance. |
|
Social(Social other)
Constructs a new Social instance. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Creates a copy of this object. |
boolean |
equals(java.lang.Object o)
Gets whether this object is equal to another object. |
java.lang.String |
getActorMessage()
Gets the message shown when the actor performing the social is also the target of the social. |
java.util.Date |
getCreated()
Gets the creation time stamp. |
java.lang.String |
getCreatedBy()
Gets the name of the player who created the social. |
java.lang.Integer |
getId()
Gets the record identity. |
java.util.Date |
getModified()
Gets the modification time stamp. |
java.lang.String |
getModifiedBy()
Gets the name of the player who modified the social. |
java.lang.String |
getName()
Gets the social's name. |
java.lang.String |
getNoArgumentMessage()
Gets the message shown when the actor does not specify a target. |
java.lang.String |
getTargetMessage()
Gets the message shown when the actor specifies a target. |
int |
hashCode()
Calculates a hashcode for this object. |
void |
perform(Socials plugin,
org.bukkit.entity.Player actor,
java.lang.String[] split)
Causes the Player specified by actor to perform
this social. |
void |
setActorMessage(java.lang.String actorMessage)
Sets the message shown when the actor performing the social is also the target of the social. |
void |
setCreated(java.util.Date created)
Sets the creation time stamp. |
void |
setCreatedBy(java.lang.String createdBy)
Sets the name of the player that created the social. |
void |
setId(java.lang.Integer id)
Sets the record identity. |
void |
setModified(java.util.Date modified)
Sets the modification time stamp. |
void |
setModifiedBy(java.lang.String modifiedBy)
Sets the name of the player that modified the social. |
void |
setName(java.lang.String name)
Sets the social's name. |
void |
setNoArgumentMessage(java.lang.String noArgumentMessage)
Sets the message shown when the actor does not specify a target. |
void |
setTargetMessage(java.lang.String targetMessage)
Sets the message shown when the actor specifies a target. |
java.lang.String |
toString()
Returns a string representation of the object. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Social()
Social
instance.
public Social(Social other)
Social
instance.
other
- the Social
whose state is to be copiedMethod Detail |
---|
public java.lang.Object clone()
clone
in class java.lang.Object
Cloneable
,
Object.clone()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- the object to which this object is to be compared
true
if the specified object is equivalentObject.equals(Object)
public java.lang.String getActorMessage()
setActorMessage(String)
public java.util.Date getCreated()
setCreated(Date)
public java.lang.String getCreatedBy()
setCreatedBy(String)
public java.lang.Integer getId()
setId(Integer)
public java.util.Date getModified()
setModified(Date)
public java.lang.String getModifiedBy()
setModifiedBy(String)
public java.lang.String getName()
setName(String)
public java.lang.String getNoArgumentMessage()
setNoArgumentMessage(String)
public java.lang.String getTargetMessage()
setTargetMessage(String)
public int hashCode()
hashCode
in class java.lang.Object
Object.hashCode()
public void perform(Socials plugin, org.bukkit.entity.Player actor, java.lang.String[] split)
Player
specified by actor
to perform
this social.
plugin
- the Socials
objectactor
- the Player
performing the socialsplit
- an array containing any arguments specified by the
player at the name linepublic void setActorMessage(java.lang.String actorMessage)
actorMessage
- the social's actor messagegetActorMessage()
public void setCreated(java.util.Date created)
created
- the creation time stampgetCreated()
public void setCreatedBy(java.lang.String createdBy)
createdBy
- the name of the player that created the socialgetCreatedBy()
public void setId(java.lang.Integer id)
id
- the record identitygetId()
public void setModified(java.util.Date modified)
modified
- the modification time stampgetModified()
public void setModifiedBy(java.lang.String modifiedBy)
modifiedBy
- the name of the player that modified the socialgetModifiedBy()
public void setName(java.lang.String name)
name
- the social's namegetName()
public void setNoArgumentMessage(java.lang.String noArgumentMessage)
noArgumentMessage
- the social's no argument messagegetNoArgumentMessage()
public void setTargetMessage(java.lang.String targetMessage)
targetMessage
- the social's target messagegetTargetMessage()
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |