26 lines
491 B
Java
26 lines
491 B
Java
package shootergame.tiles;
|
|
|
|
import shootergame.init.Textures;
|
|
import shootergame.util.math.TileState;
|
|
import shootergame.util.math.vec.Vec2d;
|
|
|
|
public class TileLadder extends TileVertical
|
|
{
|
|
|
|
public TileLadder(String id) {
|
|
super(id, Textures.TILE_LADDER, new Vec2d(1, 1));
|
|
|
|
this.opaqueTile = true;
|
|
this.tileSolid = true;
|
|
this.tileHitbox = 0.3;
|
|
this.unbreakable = true;
|
|
this.emitsLight = true;
|
|
}
|
|
|
|
@Override
|
|
public double getLightLevel(TileState state) {
|
|
return 0.5;
|
|
}
|
|
|
|
}
|