public final class PlayerCustomImageUploadRequestEvent extends PlayerEvent implements Cancellable
PlayerCustomImageUploadEvent
event will be called.PlayerCustomImageUploadEvent| Constructor and Description |
|---|
PlayerCustomImageUploadRequestEvent(Player player,
int id,
java.lang.String imageName,
int width,
int height,
int dimension) |
| Modifier and Type | Method and Description |
|---|---|
int |
getImageID()
Gets the target image id.
|
java.lang.String |
getImageName()
Gets the image name.
|
int |
getOriginalHeight()
Gets the original image height.
|
int |
getOriginalWidth()
Gets the original image width.
|
int |
getTargetDimension()
Gets the target image dimension, depending on the player permission.
|
boolean |
isCancelled()
Determines if the event is cancelled.
|
void |
setCancelled(boolean cancel)
Cancels this event.
|
void |
setImageName(java.lang.String name) |
void |
setTargetDimension(int dimension)
Sets the target image dimension.
|
getPlayerpublic PlayerCustomImageUploadRequestEvent(Player player, int id, java.lang.String imageName, int width, int height, int dimension)
public int getImageID()
PlayerCustomImageUploadEvent event.public java.lang.String getImageName()
public void setImageName(java.lang.String name)
public int getOriginalWidth()
public int getOriginalHeight()
public int getTargetDimension()
public void setTargetDimension(int dimension)
dimension - the new target dimension.public boolean isCancelled()
CancellableisCancelled in interface Cancellablepublic void setCancelled(boolean cancel)
CancellablesetCancelled in interface Cancellablecancel - set to true if you want to cancel this event.