DEADSOFTWARE

bc2ed8f48814f8526f45833b14061811d76ad389
[cavedroid.git] / core / src / ru / deadsoftware / cavecraft / game / objects / Item.java
1 package ru.deadsoftware.cavecraft.game.objects;
3 public class Item {
5 private int texture;
6 private int type; // 0 - block, 1 - tool, 2 - other
7 private int block;
8 private String name;
10 public Item(String name, int texture, int type) {
11 this(name, texture, type, -1);
12 }
14 public Item(String name, int texture, int type, int block) {
15 this.name = name;
16 this.texture = texture;
17 this.type = type;
18 this.block = block;
19 }
21 public int getTexture() {
22 return texture;
23 }
24 public int getType() {
25 return type;
26 }
27 public int getBlock() {
28 return block;
29 }
30 public String getName() {
31 return name;
32 }
34 }