Package com.mojang.ld22.entity

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

package com.mojang.ld22.entity;

import com.mojang.ld22.gfx.Color;
import com.mojang.ld22.screen.ContainerMenu;

public class Chest extends Furniture {
  public Inventory inventory = new Inventory();

  public Chest() {
    super("Chest");
    col = Color.get(-1, 110, 331, 552);
    sprite = 1;
  }

  public boolean use(Player player, int attackDir) {
    player.game.setMenu(new ContainerMenu(player, "Chest", inventory));
    return true;
  }
}
TOP

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

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.