use of net.dries007.tfc.objects.container.ContainerKnapping in project firmalife by eerussianguy.
the class FLGuiHandler method getServerGuiElement.
@Override
public Container getServerGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) {
BlockPos pos = new BlockPos(x, y, z);
ItemStack stack = player.getHeldItemMainhand();
Type type = Type.valueOf(ID);
switch(type) {
case KNAPPING_PUMPKIN:
return new ContainerKnapping(KnappingFL.PUMPKIN, player.inventory, stack.getItem() == Item.getItemFromBlock(BlocksFL.PUMPKIN_FRUIT) ? stack : player.getHeldItemOffhand());
default:
return null;
}
}
Aggregations