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-07-03 04:11:41 +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-07-30 16:25:16 +02:00
|
|
|
@Deprecated
|
2015-07-28 08:06:19 +02:00
|
|
|
public PlotItemStack(int id, short data, int amount, String name, 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-07-30 16:25:16 +02:00
|
|
|
|
|
|
|
public PlotItemStack(String id, int amount, String name, String... lore) {
|
|
|
|
PlotBlock block = BlockManager.manager.getPlotBlockFromString(id);
|
|
|
|
this.id = block.id;
|
|
|
|
this.data = block.data;
|
|
|
|
this.amount = amount;
|
|
|
|
this.name = name;
|
|
|
|
this.lore = lore;
|
|
|
|
}
|
2015-07-03 04:11:41 +02:00
|
|
|
}
|