com.cliffblaster.game.level.tile
Class ConveyorTile

java.lang.Object
  extended by com.cliffblaster.game.level.tile.Tile
      extended by com.cliffblaster.game.level.tile.ConveyorTile

public class ConveyorTile
extends Tile

Trampoline tile class

Author:
Vulpovile

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

speed

public final float speed
Constructor Detail

ConveyorTile

public ConveyorTile(int i,
                    int tex1,
                    float speed)
Method Detail

getTextureFromFace

public int getTextureFromFace(int face)
Description copied from class: Tile
Gets the texture for the face

Overrides:
getTextureFromFace in class Tile
Returns:
texCoord

isMechanical

public boolean isMechanical()
Overrides:
isMechanical in class Tile

entityHit

public 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

Overrides:
entityHit in class Tile
Parameters:
level -
x -
y -
z -
entity -
face -