blob: 633c1c6f85b2786f3b4f46d090701ada58417e49 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
package net.ess3.api.server;
import lombok.Delegate;
public class Block {
public Block(ItemStack stack, Location location)
{
this.stack = stack;
this.location = location;
}
@Delegate
private final ItemStack stack;
@Delegate
private final Location location;
public ItemStack convertToItem()
{
final ItemStack is = ItemStack.create(this.stack.getType(), 1, this.stack.getDurability());
return this.stack.getType().convertToItem(is);
}
}
|