28 lines
585 B
Java
28 lines
585 B
Java
package projectzombie.tiles;
|
|
|
|
import projectzombie.init.Textures;
|
|
import projectzombie.util.math.TileState;
|
|
import projectzombie.util.math.vec.Vec2d;
|
|
import projectzombie.util.math.vec.Vec2i;
|
|
|
|
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;
|
|
this.passNaturalLight = false;
|
|
}
|
|
|
|
@Override
|
|
public double getLightLevel(TileState state, Vec2i pos) {
|
|
return 0.5;
|
|
}
|
|
|
|
}
|