SPIGOT-1244, SPIGOT-6860, SPIGOT-6874: Various Javadoc and formatting fixes
By: Parker Hawke <hawkeboyz2@hotmail.com>
This commit is contained in:
@@ -8,7 +8,8 @@ import org.bukkit.inventory.ItemStack;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
/**
|
||||
* Called when a player interacts with an armor stand and will either swap, retrieve or place an item.
|
||||
* Called when a player interacts with an armor stand and will either swap, retrieve or
|
||||
* place an item.
|
||||
*/
|
||||
public class PlayerArmorStandManipulateEvent extends PlayerInteractEntityEvent {
|
||||
|
||||
@@ -26,12 +27,14 @@ public class PlayerArmorStandManipulateEvent extends PlayerInteractEntityEvent {
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the item held by the player. If this Item is null and the armor stand Item is also null,
|
||||
* there will be no transaction between the player and the armor stand.
|
||||
* If the Player's item is null, but the armor stand item is not then the player will obtain the armor stand item.
|
||||
* In the case that the Player's item is not null, but the armor stand item is null, the players item will be placed on the armor stand.
|
||||
* If both items are not null, the items will be swapped.
|
||||
* In the case that the event is cancelled the original items will remain the same.
|
||||
* Returns the item held by the player.
|
||||
* <p>
|
||||
* If this item is empty and the armor stand item is also empty, there will be no
|
||||
* transaction between the player and the armor stand. If the player's item is empty
|
||||
* but the armor stand item is not, the player's item will be placed on the armor
|
||||
* stand. If both items are not empty, the items will be swapped.
|
||||
* <p>
|
||||
* In the case that this event is cancelled, the original items will remain the same.
|
||||
* @return the item held by the player.
|
||||
*/
|
||||
@NotNull
|
||||
@@ -41,10 +44,14 @@ public class PlayerArmorStandManipulateEvent extends PlayerInteractEntityEvent {
|
||||
|
||||
/**
|
||||
* Returns the item held by the armor stand.
|
||||
* If this Item is null and the player's Item is also null, there will be no transaction between the player and the armor stand.
|
||||
* If the Player's item is null, but the armor stand item is not then the player will obtain the armor stand item.
|
||||
* In the case that the Player's item is not null, but the armor stand item is null, the players item will be placed on the armor stand.
|
||||
* If both items are not null, the items will be swapped.
|
||||
* <p>
|
||||
* If this item is empty and the player's item is also empty, there will be no
|
||||
* transaction between the player and the armor stand. If the player's item is empty
|
||||
* but the armor stand item is not, then the player will obtain the armor stand item.
|
||||
* In the case that the player's item is not empty but the armor stand item is empty,
|
||||
* the player's item will be placed on the armor stand. If both items are not empty,
|
||||
* the items will be swapped.
|
||||
* <p>
|
||||
* In the case that the event is cancelled the original items will remain the same.
|
||||
* @return the item held by the armor stand.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user