1
0
mirror of https://e.coding.net/circlecloud/ItemMamager.git synced 2024-11-21 01:48:53 +00:00

添加部分检测代码...

Signed-off-by: 502647092 <jtb1@163.com>
This commit is contained in:
502647092 2015-11-24 20:39:53 +08:00
parent 0aeef978d9
commit f9bc4ced2c
3 changed files with 34 additions and 5 deletions

View File

@ -1,11 +1,19 @@
package cn.citycraft.ItemMamager.runnable; package cn.citycraft.ItemMamager.runnable;
import org.bukkit.entity.Player;
import org.bukkit.inventory.ItemStack;
public class ArmorHandlerTask implements Runnable { public class ArmorHandlerTask implements Runnable {
private final Player player;
public ArmorHandlerTask(final Player player) {
this.player = player;
}
@Override @Override
public void run() { public void run() {
// TODO 自动生成的方法存根 for (final ItemStack itemStack : player.getInventory().getArmorContents()) {
}
} }
} }

View File

@ -1,11 +1,21 @@
package cn.citycraft.ItemMamager.runnable; package cn.citycraft.ItemMamager.runnable;
import org.bukkit.entity.Player;
import org.bukkit.inventory.ItemStack;
public class InventoryHandlerTask implements Runnable { public class InventoryHandlerTask implements Runnable {
private final Player player;
public InventoryHandlerTask(final Player player) {
this.player = player;
}
@Override @Override
public void run() { public void run() {
// TODO 自动生成的方法存根 for (final ItemStack itemStack : player.getInventory().getContents()) {
}
for (final ItemStack itemStack : player.getInventory().getArmorContents()) {
}
} }
} }

View File

@ -1,11 +1,22 @@
package cn.citycraft.ItemMamager.runnable; package cn.citycraft.ItemMamager.runnable;
import org.bukkit.entity.Player;
import org.bukkit.inventory.ItemStack;
public class ItemHandlerTask implements Runnable { 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 @Override
public void run() { public void run() {
// TODO 自动生成的方法存根 for (final ItemStack item : items) {
}
} }
} }