1 package ru
.deadsoftware
.cavedroid
.game
.objects
;
3 import com
.badlogic
.gdx
.graphics
.g2d
.Sprite
;
5 import javax
.annotation
.CheckForNull
;
9 private final String name
;
10 private final String type
;
12 private final Sprite tex
;
14 public Item(String name
, String type
, @CheckForNull Sprite tex
) {
18 if (this.tex
!= null) {
19 this.tex
.flip(false, true);
23 public Sprite
getTexture() {
28 public String
getType() {
32 public boolean isBlock() {
33 return type
.equals("block");
36 public String
getName() {