2015-07-03 04:11:41 +02:00
|
|
|
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
|
|
|
|
{
|
2015-07-03 04:11:41 +02:00
|
|
|
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)
|
|
|
|
{
|
2015-07-03 04:11:41 +02:00
|
|
|
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;
|
|
|
|
}
|
2015-07-03 04:11:41 +02:00
|
|
|
}
|