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 Direction[] |
SIDES |
private float[][][][] |
skyLight |
private BlockState |
state |
private boolean[][][] |
t |
private ILightReader |
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() |
BlockState |
getState() |
boolean[][][] |
getTranslucent() |
ILightReader |
getWorld() |
boolean |
isFullCube() |
void |
reset() |
void |
setBlockPos(BlockPos blockPos) |
void |
setState(BlockState state) |
void |
setWorld(ILightReader world) |
void |
updateFlatLighting() |
void |
updateLightMatrix() |
void |
updateShift() |
private static final Direction[] SIDES
private final BlockColors colors
private ILightReader world
private BlockState 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(ILightReader world)
public void setState(BlockState 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 ILightReader getWorld()
public BlockState 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()