|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.cliffblaster.game.level.tile.Tile
com.cliffblaster.game.level.tile.ConveyorTile
public class ConveyorTile
Trampoline tile class
Field Summary | |
---|---|
float |
speed
|
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 | |
---|---|
ConveyorTile(int i,
int tex1,
float speed)
|
Method Summary | |
---|---|
void |
entityHit(com.cliffblaster.game.level.Level level,
int x,
int y,
int z,
com.cliffblaster.game.entity.Entity entity,
int face)
Conveyor physics, when hit it moves the entity according to the block under it |
int |
getTextureFromFace(int face)
Gets the texture for the face |
boolean |
isMechanical()
|
Methods inherited from class com.cliffblaster.game.level.tile.Tile |
---|
blocksLight, canExplode, canRenderFace, flow, getFlowDivider, getStepSound, getTextureFromFace, getTileAABB, getTileRenderAABB, getTitle, glows, isOpaque, mayPick, onDestroy, onExplode, onNeighbourNotify, onNeighbourNotify, onPlace, onRemove, render, renderBackFace, renderFace, renderUnbound, setShape, setStepSound, setTick, setTitle, tick |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final float speed
Constructor Detail |
---|
public ConveyorTile(int i, int tex1, float speed)
Method Detail |
---|
public int getTextureFromFace(int face)
Tile
getTextureFromFace
in class Tile
public boolean isMechanical()
isMechanical
in class Tile
public void entityHit(com.cliffblaster.game.level.Level level, int x, int y, int z, com.cliffblaster.game.entity.Entity entity, int face)
entityHit
in class Tile
level
- x
- y
- z
- entity
- face
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |