public class ShopItemWithVariation
extends java.lang.Object
Constructor and Description |
---|
ShopItemWithVariation(ShopItem item) |
ShopItemWithVariation(ShopItem shopItem,
float variation) |
Modifier and Type | Method and Description |
---|---|
boolean |
canSell() |
BaseShopItem |
getBaseShopItem() |
int |
getBuyCost() |
static ShopItemWithVariation |
getFromNBT(java.lang.String npcIndex,
net.minecraft.nbt.CompoundNBT tag) |
net.minecraft.item.ItemStack |
getItemStack() |
int |
getSellCost() |
void |
writeToBuffer(net.minecraft.network.PacketBuffer buffer) |
void |
writeToNBT(net.minecraft.nbt.ListNBT list) |
public ShopItemWithVariation(ShopItem shopItem, float variation)
public ShopItemWithVariation(ShopItem item)
public void writeToNBT(net.minecraft.nbt.ListNBT list)
public static ShopItemWithVariation getFromNBT(java.lang.String npcIndex, net.minecraft.nbt.CompoundNBT tag)
public void writeToBuffer(net.minecraft.network.PacketBuffer buffer)
public net.minecraft.item.ItemStack getItemStack()
public BaseShopItem getBaseShopItem()
public boolean canSell()
public int getBuyCost()
public int getSellCost()