|
||||||||||
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.LiquidTile
public class LiquidTile
Trampoline tile class
Field Summary | |
---|---|
int |
flowRate
|
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 | |
---|---|
LiquidTile(int i,
int tex1,
int flowRate,
byte liquidType)
|
Method Summary | |
---|---|
boolean |
canFlow(com.cliffblaster.game.level.Level level,
int x,
int y,
int z)
|
protected boolean |
canRenderFace(com.cliffblaster.game.level.Level level,
int x,
int y,
int z,
int layer)
Determines whether the face can be rendered |
boolean |
destroySurroundingOtherLiquid(com.cliffblaster.game.level.Level level,
int x,
int y,
int z)
|
void |
flow(com.cliffblaster.game.level.Level level,
int x,
int y,
int z)
|
static int |
getBaseId(int id)
|
long |
getFlowDivider()
|
AABB |
getTileAABB(com.cliffblaster.game.level.Level level,
int x,
int y,
int z)
Gets the AABB of the tile |
boolean |
glows()
|
boolean |
isOpaque()
|
protected void |
listFlow(com.cliffblaster.game.level.Level level,
int x,
int y,
int z)
|
boolean |
mayPick()
|
void |
onNeighbourNotify(com.cliffblaster.game.level.Level level,
int x,
int y,
int z,
int id)
Tile notify |
protected static int |
oppositeId(int id)
|
protected void |
renderFace(com.cliffblaster.game.level.Level level,
int face,
float x,
float y,
float z)
Renders the given face |
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, entityHit, getStepSound, getTextureFromFace, getTextureFromFace, getTileRenderAABB, getTitle, isMechanical, onDestroy, onExplode, onNeighbourNotify, onPlace, onRemove, render, renderBackFace, renderUnbound, setShape, setStepSound, setTick, setTitle |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final int flowRate
Constructor Detail |
---|
public LiquidTile(int i, int tex1, int flowRate, byte liquidType)
Method Detail |
---|
public boolean isOpaque()
isOpaque
in class Tile
public AABB getTileAABB(com.cliffblaster.game.level.Level level, int x, int y, int z)
getTileAABB
in class Tile
level
- x
- y
- z
-
public boolean mayPick()
mayPick
in class Tile
protected void renderFace(com.cliffblaster.game.level.Level level, int face, float x, float y, float z)
Tile
renderFace
in class Tile
public void tick(com.cliffblaster.game.level.Level level, int x, int y, int z)
Tile
tick
in class Tile
protected boolean canRenderFace(com.cliffblaster.game.level.Level level, int x, int y, int z, int layer)
Tile
canRenderFace
in class Tile
public boolean glows()
glows
in class Tile
public void onNeighbourNotify(com.cliffblaster.game.level.Level level, int x, int y, int z, int id)
Tile
onNeighbourNotify
in class Tile
protected static int oppositeId(int id)
public boolean destroySurroundingOtherLiquid(com.cliffblaster.game.level.Level level, int x, int y, int z)
public static int getBaseId(int id)
public long getFlowDivider()
getFlowDivider
in class Tile
protected void listFlow(com.cliffblaster.game.level.Level level, int x, int y, int z)
public void flow(com.cliffblaster.game.level.Level level, int x, int y, int z)
flow
in class Tile
public boolean canFlow(com.cliffblaster.game.level.Level level, int x, int y, int z)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |