public class BlockInfo
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private float[][][] |
ao |
private int[][][] |
b |
private float[][][][] |
blockLight |
private BlockPos |
blockPos |
private int |
cachedMultiplier |
private int |
cachedTint |
private BlockColors |
colors |
private boolean |
full |
private int[] |
packed |
private int[][][] |
s |
private float |
shx |
private float |
shy |
private float |
shz |
private static EnumFacing[] |
SIDES |
private float[][][][] |
skyLight |
private IBlockState |
state |
private boolean[][][] |
t |
private IBlockAccess |
world |
Constructor and Description |
---|
BlockInfo(BlockColors colors) |
Modifier and Type | Method and Description |
---|---|
private float |
combine(int c,
int s1,
int s2,
int s3,
boolean t0,
boolean t1,
boolean t2,
boolean t3) |
float[][][] |
getAo() |
float[][][][] |
getBlockLight() |
BlockPos |
getBlockPos() |
int |
getCachedMultiplier() |
int |
getCachedTint() |
int |
getColorMultiplier(int tint) |
int[] |
getPackedLight() |
float |
getShx() |
float |
getShy() |
float |
getShz() |
float[][][][] |
getSkyLight() |
IBlockState |
getState() |
boolean[][][] |
getTranslucent() |
IBlockAccess |
getWorld() |
boolean |
isFullCube() |
void |
reset() |
void |
setBlockPos(BlockPos blockPos) |
void |
setState(IBlockState state) |
void |
setWorld(IBlockAccess world) |
void |
updateFlatLighting() |
void |
updateLightMatrix() |
void |
updateShift() |
private static final EnumFacing[] SIDES
private final BlockColors colors
private IBlockAccess world
private IBlockState state
private BlockPos blockPos
private final boolean[][][] t
private final int[][][] s
private final int[][][] b
private final float[][][][] skyLight
private final float[][][][] blockLight
private final float[][][] ao
private final int[] packed
private boolean full
private float shx
private float shy
private float shz
private int cachedTint
private int cachedMultiplier
public BlockInfo(BlockColors colors)
public int getColorMultiplier(int tint)
public void updateShift()
public void setWorld(IBlockAccess world)
public void setState(IBlockState state)
public void setBlockPos(BlockPos blockPos)
public void reset()
private float combine(int c, int s1, int s2, int s3, boolean t0, boolean t1, boolean t2, boolean t3)
public void updateLightMatrix()
public void updateFlatLighting()
public IBlockAccess getWorld()
public IBlockState getState()
public BlockPos getBlockPos()
public boolean[][][] getTranslucent()
public float[][][][] getSkyLight()
public float[][][][] getBlockLight()
public float[][][] getAo()
public int[] getPackedLight()
public boolean isFullCube()
public float getShx()
public float getShy()
public float getShz()
public int getCachedTint()
public int getCachedMultiplier()