mirror of
https://e.coding.net/circlecloud/ItemMamager.git
synced 2024-11-24 02:18:55 +00:00
添加部分检测代码...
Signed-off-by: 502647092 <jtb1@163.com>
This commit is contained in:
parent
0aeef978d9
commit
f9bc4ced2c
@ -1,11 +1,19 @@
|
||||
package cn.citycraft.ItemMamager.runnable;
|
||||
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
|
||||
public class ArmorHandlerTask implements Runnable {
|
||||
private final Player player;
|
||||
|
||||
public ArmorHandlerTask(final Player player) {
|
||||
this.player = player;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void run() {
|
||||
// TODO 自动生成的方法存根
|
||||
|
||||
for (final ItemStack itemStack : player.getInventory().getArmorContents()) {
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -1,11 +1,21 @@
|
||||
package cn.citycraft.ItemMamager.runnable;
|
||||
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
|
||||
public class InventoryHandlerTask implements Runnable {
|
||||
private final Player player;
|
||||
|
||||
public InventoryHandlerTask(final Player player) {
|
||||
this.player = player;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void run() {
|
||||
// TODO 自动生成的方法存根
|
||||
|
||||
for (final ItemStack itemStack : player.getInventory().getContents()) {
|
||||
}
|
||||
for (final ItemStack itemStack : player.getInventory().getArmorContents()) {
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -1,11 +1,22 @@
|
||||
package cn.citycraft.ItemMamager.runnable;
|
||||
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
|
||||
public class ItemHandlerTask implements Runnable {
|
||||
private final ItemStack[] items;
|
||||
private final Player player;
|
||||
|
||||
public ItemHandlerTask(final Player player, final ItemStack... items) {
|
||||
this.player = player;
|
||||
this.items = items;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void run() {
|
||||
// TODO 自动生成的方法存根
|
||||
for (final ItemStack item : items) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user