Implement BlockStack in Teleposer related areas

This commit is contained in:
Nick 2016-01-05 15:26:24 -08:00
parent 31d41d06ab
commit c3beb48499
5 changed files with 34 additions and 30 deletions

View file

@ -43,6 +43,11 @@ public class ItemStackWrapper
this(block, 1, 0);
}
public ItemStackWrapper(BlockStack blockStack)
{
this(blockStack.getBlock(), 1, blockStack.getMeta());
}
public static ItemStackWrapper getHolder(ItemStack stack)
{
return new ItemStackWrapper(stack.getItem(), stack.stackSize, stack.getItemDamage());