Package com.mojang.ld22.entity

Source Code of com.mojang.ld22.entity.Workbench

package com.mojang.ld22.entity;

import com.mojang.ld22.crafting.Crafting;
import com.mojang.ld22.gfx.Color;
import com.mojang.ld22.screen.CraftingMenu;

public class Workbench extends Furniture {
  public Workbench() {
    super("Workbench");
    col = Color.get(-1, 100, 321, 431);
    sprite = 4;
    xr = 3;
    yr = 2;
  }

  public boolean use(Player player, int attackDir) {
    player.game.setMenu(new CraftingMenu(Crafting.workbenchRecipes, player));
    return true;
  }
}
TOP

Related Classes of com.mojang.ld22.entity.Workbench

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.