com.cliffblaster.game.level.tile
Class RandomTextureTile

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

public class RandomTextureTile
extends Tile

Class for any tile with differing based on location and seed

Author:
Vulpovile

Field Summary
 
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
protected RandomTextureTile(int id, int[] textures)
           
 
Method Summary
 int getTextureFromFace(int face, com.cliffblaster.game.level.Level level, float x, float y, float z)
          Get the two different textures depending on the face
 long randomizeLong(long x)
           
 
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, 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
 

Constructor Detail

RandomTextureTile

protected RandomTextureTile(int id,
                            int[] textures)
Parameters:
id -
texCoord1 -
texCoord2 -
Method Detail

getTextureFromFace

public int getTextureFromFace(int face,
                              com.cliffblaster.game.level.Level level,
                              float x,
                              float y,
                              float z)
Get the two different textures depending on the face

Overrides:
getTextureFromFace in class Tile
Returns:

randomizeLong

public long randomizeLong(long x)