From 67e91ef77757f4affbb1ba7867bd2913e3a2a654 Mon Sep 17 00:00:00 2001 From: md_5 Date: Sat, 10 Nov 2018 20:45:23 +1100 Subject: Fix some incorrectly handled JavaDoc --- src/main/java/org/bukkit/StructureType.java | 6 +++--- .../org/bukkit/event/inventory/InventoryInteractEvent.java | 4 ++-- .../java/org/bukkit/event/player/PlayerBedEnterEvent.java | 14 +++++++------- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/main/java/org/bukkit/StructureType.java b/src/main/java/org/bukkit/StructureType.java index a8a92607..5de51989 100644 --- a/src/main/java/org/bukkit/StructureType.java +++ b/src/main/java/org/bukkit/StructureType.java @@ -149,7 +149,7 @@ public class StructureType { * mapIcon. * * @param name the name of the structure, case-sensitive - * @param mapIcon the {@link MapCursor.Type} this structure type should use + * @param mapIcon the {@link org.bukkit.map.MapCursor.Type} this structure type should use * when creating explorer maps. Use null to indicate this structure should * not be compatible with explorer maps. */ @@ -170,10 +170,10 @@ public class StructureType { } /** - * Get the {@link MapCursor.Type} that this structure can use on maps. If + * Get the {@link org.bukkit.map.MapCursor.Type} that this structure can use on maps. If * this is null, this structure will not appear on explorer maps. * - * @return the {@link MapCursor.Type} or null. + * @return the {@link org.bukkit.map.MapCursor.Type} or null. */ public MapCursor.Type getMapIcon() { return mapCursor; diff --git a/src/main/java/org/bukkit/event/inventory/InventoryInteractEvent.java b/src/main/java/org/bukkit/event/inventory/InventoryInteractEvent.java index 627cd0fd..19e67a70 100644 --- a/src/main/java/org/bukkit/event/inventory/InventoryInteractEvent.java +++ b/src/main/java/org/bukkit/event/inventory/InventoryInteractEvent.java @@ -29,14 +29,14 @@ public abstract class InventoryInteractEvent extends InventoryEvent implements C * event is considered cancelled. * * @see #isCancelled() - * @param newResult the new {@link Result} for this event + * @param newResult the new {@link org.bukkit.event.Event.Result} for this event */ public void setResult(Result newResult) { result = newResult; } /** - * Gets the {@link Result} of this event. The Result describes the + * Gets the {@link org.bukkit.event.Event.Result} of this event. The Result describes the * behavior that will be applied to the inventory in relation to this * event. * diff --git a/src/main/java/org/bukkit/event/player/PlayerBedEnterEvent.java b/src/main/java/org/bukkit/event/player/PlayerBedEnterEvent.java index d938883a..3b18520f 100644 --- a/src/main/java/org/bukkit/event/player/PlayerBedEnterEvent.java +++ b/src/main/java/org/bukkit/event/player/PlayerBedEnterEvent.java @@ -76,11 +76,11 @@ public class PlayerBedEnterEvent extends PlayerEvent implements Cancellable { /** * This controls the action to take with the bed that was clicked on. *

- * In case of {@link Result#DEFAULT}, the default outcome is described by + * In case of {@link org.bukkit.event.Event.Result#DEFAULT}, the default outcome is described by * {@link #getBedEnterResult()}. * * @return the action to take with the interacted bed - * @see #setUseBed(Result) + * @see #setUseBed(org.bukkit.event.Event.Result) */ public Result useBed() { return useBed; @@ -89,13 +89,13 @@ public class PlayerBedEnterEvent extends PlayerEvent implements Cancellable { /** * Sets the action to take with the interacted bed. *

- * {@link Result#ALLOW} will result in the player sleeping, regardless of + * {@link org.bukkit.event.Event.Result#ALLOW} will result in the player sleeping, regardless of * the default outcome described by {@link #getBedEnterResult()}. *
- * {@link Result#DENY} will prevent the player from sleeping. This has the + * {@link org.bukkit.event.Event.Result#DENY} will prevent the player from sleeping. This has the * same effect as canceling the event via {@link #setCancelled(boolean)}. *
- * {@link Result#DEFAULT} will result in the outcome described by + * {@link org.bukkit.event.Event.Result#DEFAULT} will result in the outcome described by * {@link #getBedEnterResult()}. * * @param useBed the action to take with the interacted bed @@ -110,10 +110,10 @@ public class PlayerBedEnterEvent extends PlayerEvent implements Cancellable { * prevent the player from sleeping. *

* Canceling the event has the same effect as setting {@link #useBed()} to - * {@link Result#DENY}. + * {@link org.bukkit.event.Event.Result#DENY}. *

* For backwards compatibility reasons this also returns true if - * {@link #useBed()} is {@link Result#DEFAULT} and the + * {@link #useBed()} is {@link org.bukkit.event.Event.Result#DEFAULT} and the * {@link #getBedEnterResult() default action} is to prevent bed entering. * * @return boolean cancellation state -- cgit v1.2.3