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
;
11 private final Sprite tex
;
13 public Item(String name
, String type
, @CheckForNull Sprite tex
) {
17 if (this.tex
!= null) {
18 this.tex
.flip(false, true);
22 public Sprite
getTex() {
26 public String
getType() {
30 public boolean isBlock() {
31 return type
.equals("block");
34 public String
getName() {