32 lines
575 B
Java
Executable File
32 lines
575 B
Java
Executable File
package projectzombie.tiles;
|
|
|
|
import projectzombie.init.Models;
|
|
import projectzombie.model.Model;
|
|
import projectzombie.util.math.TileState;
|
|
import gl_engine.vec.Vec2d;
|
|
import gl_engine.vec.Vec2i;
|
|
|
|
public class TileLadder extends Tile
|
|
{
|
|
|
|
public TileLadder() {
|
|
|
|
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;
|
|
}
|
|
|
|
@Override
|
|
public Model getModel(byte meta) {
|
|
return Models.TILE_LADDER;
|
|
}
|
|
|
|
}
|