Class BasicData
java.lang.Object
com.jozufozu.flywheel.api.InstanceData
com.jozufozu.flywheel.core.materials.BasicData
- Direct Known Subclasses:
ModelData,OrientedData
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintsetBlockLight(int blockLight) setColor(byte r, byte g, byte b) setColor(byte r, byte g, byte b, byte a) setColor(int color) setColor(int color, boolean alpha) setColor(int r, int g, int b) setSkyLight(int skyLight) Methods inherited from class com.jozufozu.flywheel.api.InstanceData
checkDirtyAndClear, delete, getOwner, isRemoved, markDirty, setOwnerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.jozufozu.flywheel.core.materials.FlatLit
updateLight
-
Field Details
-
blockLight
public byte blockLight -
skyLight
public byte skyLight -
r
public byte r -
g
public byte g -
b
public byte b -
a
public byte a
-
-
Constructor Details
-
BasicData
public BasicData()
-
-
Method Details
-
setBlockLight
- Specified by:
setBlockLightin interfaceFlatLit<BasicData>- Parameters:
blockLight- An integer in the range [0, 15] representing the amount of block light this instance should receive.- Returns:
this
-
setSkyLight
- Specified by:
setSkyLightin interfaceFlatLit<BasicData>- Parameters:
skyLight- An integer in the range [0, 15] representing the amount of sky light this instance should receive.- Returns:
this
-
getPackedLight
public int getPackedLight()- Specified by:
getPackedLightin interfaceFlatLit<BasicData>
-
setColor
-
setColor
-
setColor
-
setColor
-
setColor
-
setColor
-