public class ShopItem extends Object
Constructor and Description |
---|
ShopItem(ShopChest plugin,
org.bukkit.inventory.ItemStack itemStack,
org.bukkit.Location location) |
Modifier and Type | Method and Description |
---|---|
Object |
getEntityItem() |
org.bukkit.inventory.ItemStack |
getItemStack() |
org.bukkit.Location |
getLocation() |
boolean |
isVisible(org.bukkit.entity.Player p) |
void |
remove() |
void |
resetForPlayer(org.bukkit.entity.Player p)
Respawns the item at the set location for a player
|
void |
setVisible(org.bukkit.entity.Player p,
boolean visible) |
public ShopItem(ShopChest plugin, org.bukkit.inventory.ItemStack itemStack, org.bukkit.Location location)
public void remove()
public void resetForPlayer(org.bukkit.entity.Player p)
p
- Player, for which the item should be resetpublic boolean isVisible(org.bukkit.entity.Player p)
public void setVisible(org.bukkit.entity.Player p, boolean visible)
public org.bukkit.Location getLocation()
EntityItem
which you can get in getEntityItem()
.public Object getEntityItem()
net.minecraft.server.[VERSION].EntityItem
public org.bukkit.inventory.ItemStack getItemStack()
ItemStack
Copyright © 2017. All rights reserved.