com.cliffblaster.game.level.tile
Class DynamiteTile
java.lang.Object
com.cliffblaster.game.level.tile.Tile
com.cliffblaster.game.level.tile.DynamiteTile
public class DynamiteTile
- extends Tile
Dynamite tile class
- Author:
- Vulpovile
Field Summary |
static int |
RADIUS
|
Fields inherited from class com.cliffblaster.game.level.tile.Tile |
BACK, bookshelf, bookshelf_empty, BOTTOM, bricks, canTick, canvas_black, canvas_blue, canvas_cyan, canvas_green, canvas_grey, canvas_indigo, canvas_lightblue, canvas_lime, canvas_magenta, canvas_orange, canvas_pink, canvas_red, canvas_turquoise, canvas_violet, canvas_white, canvas_yellow, coalblock, coalore, conveyor, dandelion, dirt, dislodgerblock, dynamite, elevator, FRONT, glass, goldblock, goldore, grass, gravel, id, ironblock, ironore, IS_LIQUID, lava, LAVA, leaves, LEFT, liquidType, log, MOVING, obsidian, plant, RIGHT, rose, sand, siding, sponge, STILL, stilllava, stillwater, stone, stonebrick, texCoord, tiles, TOP, trampoline, water, WATER, woodplank |
Constructor Summary |
DynamiteTile(int i,
int tex1,
int tex2,
int tex3,
int timer,
float strength)
|
Method Summary |
int |
getTextureFromFace(int face)
Get the three different textures depending on the face |
void |
onDestroy(com.cliffblaster.game.level.Level level,
com.cliffblaster.game.entity.Player player,
int x,
int y,
int z)
|
void |
onExplode(com.cliffblaster.game.level.Level level,
int x,
int y,
int z,
float distance)
|
void |
tick(com.cliffblaster.game.level.Level level,
int x,
int y,
int z)
Tile tick |
Methods inherited from class com.cliffblaster.game.level.tile.Tile |
blocksLight, canExplode, canRenderFace, entityHit, flow, getFlowDivider, getStepSound, getTextureFromFace, getTileAABB, getTileRenderAABB, getTitle, glows, isMechanical, isOpaque, mayPick, onNeighbourNotify, onNeighbourNotify, onPlace, onRemove, render, renderBackFace, renderFace, renderUnbound, setShape, setStepSound, setTick, setTitle |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RADIUS
public static final int RADIUS
- See Also:
- Constant Field Values
DynamiteTile
public DynamiteTile(int i,
int tex1,
int tex2,
int tex3,
int timer,
float strength)
tick
public void tick(com.cliffblaster.game.level.Level level,
int x,
int y,
int z)
- Description copied from class:
Tile
- Tile tick
- Overrides:
tick
in class Tile
getTextureFromFace
public int getTextureFromFace(int face)
- Get the three different textures depending on the face
- Overrides:
getTextureFromFace
in class Tile
- Returns:
- texCoord
onExplode
public void onExplode(com.cliffblaster.game.level.Level level,
int x,
int y,
int z,
float distance)
- Overrides:
onExplode
in class Tile
onDestroy
public void onDestroy(com.cliffblaster.game.level.Level level,
com.cliffblaster.game.entity.Player player,
int x,
int y,
int z)
- Overrides:
onDestroy
in class Tile