PlotSquared/src/main/java/com/intellectualcrafters/plot/object/PlotItemStack.java

33 lines
887 B
Java
Raw Normal View History

package com.intellectualcrafters.plot.object;
2015-07-30 16:25:16 +02:00
import com.intellectualcrafters.plot.util.BlockManager;
2015-09-11 12:09:22 +02:00
public class PlotItemStack
{
public final int id;
public final short data;
public final int amount;
public final String name;
public final String[] lore;
2015-09-11 12:09:22 +02:00
2015-07-30 16:25:16 +02:00
@Deprecated
2015-09-11 12:09:22 +02:00
public PlotItemStack(final int id, final short data, final int amount, final String name, final String... lore)
{
this.id = id;
this.data = data;
this.amount = amount;
this.name = name;
this.lore = lore;
}
2015-09-11 12:09:22 +02:00
public PlotItemStack(final String id, final int amount, final String name, final String... lore)
{
final PlotBlock block = BlockManager.manager.getPlotBlockFromString(id);
2015-07-30 16:25:16 +02:00
this.id = block.id;
2015-09-11 12:09:22 +02:00
data = block.data;
2015-07-30 16:25:16 +02:00
this.amount = amount;
this.name = name;
this.lore = lore;
}
}