From 30a02ac1baf6b28c1c9bf178375768df9491efce Mon Sep 17 00:00:00 2001 From: Ghost_chu <2908803755@qq.com> Date: Tue, 16 Jul 2019 21:20:01 +0800 Subject: [PATCH] Set Deprecated tag Former-commit-id: e1e00d5fda26d724576688aad5666932d4cbe84d [formerly 7a60156c07b78fcd7521582d8184d0da7865d5b3] Former-commit-id: 84b9c83af3a8408706a6ba2f271a9b50f36b0f47 --- .../quickshop/Event/ShopDisplayItemDespawnEvent.java | 10 ++++++++-- .../quickshop/Event/ShopDisplayItemSpawnEvent.java | 10 ++++++++-- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/src/main/java/org/maxgamer/quickshop/Event/ShopDisplayItemDespawnEvent.java b/src/main/java/org/maxgamer/quickshop/Event/ShopDisplayItemDespawnEvent.java index 20db4a9ff..3653ff093 100644 --- a/src/main/java/org/maxgamer/quickshop/Event/ShopDisplayItemDespawnEvent.java +++ b/src/main/java/org/maxgamer/quickshop/Event/ShopDisplayItemDespawnEvent.java @@ -19,17 +19,23 @@ public class ShopDisplayItemDespawnEvent extends Event implements Cancellable { private ItemStack iStack; private DisplayType displayType; - /* + /** * This event is called before the shop display item created + * @param shop Target shop + * @param iStack Target itemstacck */ + @Deprecated public ShopDisplayItemDespawnEvent(Shop shop, ItemStack iStack) { this.shop = shop; this.iStack = iStack; this.displayType = DisplayItem.getNowUsing(); } - /* + /** * This event is called before the shop display item created + * @param shop Target shop + * @param iStack Target itemstacck + * @param displayType The displayType */ public ShopDisplayItemDespawnEvent(Shop shop, ItemStack iStack, DisplayType displayType) { this.shop = shop; diff --git a/src/main/java/org/maxgamer/quickshop/Event/ShopDisplayItemSpawnEvent.java b/src/main/java/org/maxgamer/quickshop/Event/ShopDisplayItemSpawnEvent.java index 4b7fd0864..359cfc503 100644 --- a/src/main/java/org/maxgamer/quickshop/Event/ShopDisplayItemSpawnEvent.java +++ b/src/main/java/org/maxgamer/quickshop/Event/ShopDisplayItemSpawnEvent.java @@ -18,8 +18,11 @@ public class ShopDisplayItemSpawnEvent extends Event implements Cancellable { private ItemStack iStack; private DisplayType displayType; - /* + /** * This event is called before the shop display item created + * @param shop Target shop + * @param displayType The displayType + * @param iStack Target ItemStack */ public ShopDisplayItemSpawnEvent(Shop shop, ItemStack iStack, DisplayType displayType) { this.shop = shop; @@ -27,9 +30,12 @@ public class ShopDisplayItemSpawnEvent extends Event implements Cancellable { this.displayType = displayType; } - /* + /** * This event is called before the shop display item created + * @param shop Target shop + * @param displayType The displayType */ + @Deprecated public ShopDisplayItemSpawnEvent(Shop shop, ItemStack iStack) { this.shop = shop; this.iStack = iStack;