DEADSOFTWARE

Fix code style
[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 }
25 public int getType() {
26 return type;
27 }
29 public int getBlock() {
30 return block;
31 }
33 public String getName() {
34 return name;
35 }
37 }