Package com.mojang.ld22.entity

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

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 Furnace extends Furniture {
  public Furnace() {
    super("Furnace");
    col = Color.get(-1, 000, 222, 333);
    sprite = 3;
    xr = 3;
    yr = 2;
  }

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

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

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.