public class ProtectAction extends Object
| Constructor and Description |
|---|
ProtectAction(ProtectActionType protectActionType,
User user)
May only be used with protectActionType == DROP
|
ProtectAction(ProtectActionType protectActionType,
User owner,
Material material)
May be used with protectActionType == PROTECT or UNPROTECT or LOCK or UNLOCK
|
ProtectAction(ProtectActionType protectActionType,
User owner,
Material material,
User user) |
ProtectAction(ProtectActionType protectActionType,
User owner,
User user)
May only be used with protectActionType == FRIEND or UNFRIEND
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
ProtectActionType |
getActionType() |
Material |
getMaterial() |
User |
getOwner() |
long |
getTimeStamp() |
User |
getUser() |
int |
hashCode() |
String |
toString() |
public ProtectAction(ProtectActionType protectActionType, User owner, Material material, User user)
protectActionType - owner - Must not be nullmaterial - may be null or left out depending on action typeuser - may be null or left out depending on action typepublic ProtectAction(ProtectActionType protectActionType, User owner, Material material)
protectActionType - owner - material - public ProtectAction(ProtectActionType protectActionType, User owner, User user)
protectActionType - owner - user - public ProtectAction(ProtectActionType protectActionType, User user)
protectActionType - user - public ProtectActionType getActionType()
public User getOwner()
public User getUser()
public Material getMaterial()
public long getTimeStamp()
Copyright © 2015. All rights reserved.