public static bool OpenEnchantmentTable(Player a, BCS b) { a.OpenWindow(WindowType.EnchantmentTable, b.pos); return false; }
public static bool OpenFurnace(Player a, BCS b) { a.OpenWindow(WindowType.Furnace, b.pos); return false; }
public static bool OpenDispenser(Player a, BCS b) { a.OpenWindow(WindowType.Dispenser, b.pos); return false; }
public static bool OpenCraftingTable(Player a, BCS b) { a.OpenWindow(WindowType.Workbench, b.pos); return false; }
public static bool OpenChest(Player a, BCS b) { a.OpenWindow(WindowType.Chest, b.pos); return false; }
public static bool OpenBrewingStand(Player a, BCS b) { a.OpenWindow(WindowType.BrewingStand, b.pos); return false; }
public static bool OpenChest(Player a, BCS b) { if (!BlockData.IsOpaqueCube(a.level.GetBlock((int)b.pos.x, (int)b.pos.y + 1, (int)b.pos.z))) a.OpenWindow(WindowType.Chest, b.pos); return false; }