Generic cleanup of warnings, whitespace and style.
This commit is contained in:
@@ -6,6 +6,7 @@ import org.bukkit.event.Cancellable;
|
||||
/**
|
||||
* Called when a creature targets or untargets another entity
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class EntityTargetEvent extends EntityEvent implements Cancellable {
|
||||
private boolean cancel;
|
||||
private Entity target;
|
||||
@@ -28,6 +29,7 @@ public class EntityTargetEvent extends EntityEvent implements Cancellable {
|
||||
|
||||
/**
|
||||
* Returns the reason for the targeting
|
||||
*
|
||||
* @return The reason
|
||||
*/
|
||||
public TargetReason getReason() {
|
||||
@@ -38,6 +40,7 @@ public class EntityTargetEvent extends EntityEvent implements Cancellable {
|
||||
* Get the entity that this is targeting.
|
||||
* This will be null in the case that the event is called when
|
||||
* the mob forgets its target.
|
||||
*
|
||||
* @return The entity
|
||||
*/
|
||||
public Entity getTarget() {
|
||||
|
||||
Reference in New Issue
Block a user