Examples of FurnitureItem


Examples of com.mojang.ld22.item.FurnitureItem

public class FurnitureRecipe extends Recipe {
  private Class<? extends Furniture> clazz;

  public FurnitureRecipe(Class<? extends Furniture> clazz) throws InstantiationException, IllegalAccessException {
    super(new FurnitureItem(clazz.newInstance()));
    this.clazz = clazz;
  }
View Full Code Here

Examples of com.mojang.ld22.item.FurnitureItem

    this.clazz = clazz;
  }

  public void craft(Player player) {
    try {
      player.inventory.add(0, new FurnitureItem(clazz.newInstance()));
    } catch (Exception e) {
      throw new RuntimeException(e);
    }
  }
View Full Code Here

Examples of com.mojang.ld22.item.FurnitureItem

  public void tick() {
    if (shouldTake != null) {
      if (shouldTake.activeItem instanceof PowerGloveItem) {
        remove();
        shouldTake.inventory.add(0, shouldTake.activeItem);
        shouldTake.activeItem = new FurnitureItem(this);
      }
      shouldTake = null;
    }
    if (pushDir == 0) move(0, +1);
    if (pushDir == 1) move(0, -1);
View Full Code Here

Examples of com.mojang.ld22.item.FurnitureItem

    this.input = input;
    x = 24;
    y = 24;
    stamina = maxStamina;

    inventory.add(new FurnitureItem(new Workbench()));
    inventory.add(new PowerGloveItem());
  }
View Full Code Here
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.