public class RenderParameters extends java.lang.Object implements ITransformable.Color, ITransformable.Alpha, ITransformable.Brightness
ITransformable.Alpha, ITransformable.Brightness, ITransformable.Color, ITransformable.Position<T>, ITransformable.Rotate, ITransformable.Scale, ITransformable.Size<T>, ITransformable.Translate
Modifier and Type | Field and Description |
---|---|
Parameter<java.lang.Integer> |
alpha
Defines alpha transparency for the face (GL11.GL_BLEND needs to be set before). usePerVertexAlpha must be false (Block Level)
|
Parameter<int[][][]> |
aoMatrix
Defines which block to take into account for AO calculation (Face Level)
|
Parameter<java.lang.Boolean> |
applyTexture
Define whether to apply texture UV for the shape (Block level)
|
Parameter<java.lang.Integer> |
brightness
Defines brightness of the face (only used if useBlockBrightness = false) (Block Level)
|
Parameter<java.lang.Boolean> |
calculateAOColor
Defines whether to calculate ambient occlusion color or not (Block Level)
|
Parameter<java.lang.Boolean> |
calculateBrightness
Defines whether to calculate brightness or not (Block Level)
|
Parameter<java.lang.Float> |
colorFactor
Defines the color factor for the face (Block Level).
|
Parameter<java.lang.Integer> |
colorMultiplier
Defines the color to apply to the face (useful for grass and leaves) usePerVertexColor must be false (Block Level).
|
Parameter<net.minecraftforge.common.util.ForgeDirection> |
direction
Defines the general direction of a face.
|
Parameter<java.lang.Boolean> |
flipU
Defines whether to flip the texture on the U coordinates (Face Level)
|
Parameter<java.lang.Boolean> |
flipV
Defines whether to flip the texture on the U coordinates (Face Level)
|
Parameter<net.minecraft.util.IIcon> |
icon
Defines an icon to use for the block/face (will override textureSide) (Block Level)
|
Parameter<java.lang.Boolean> |
interpolateUV
Defines whether to calculate interpolated textures coordinates depending on block bounds (Block Level)
|
Parameter<java.lang.Boolean> |
renderAllFaces
Defines whether to render all faces even if shoudSideBeRendered is false
|
Parameter<net.minecraft.util.AxisAlignedBB> |
renderBounds
Defines the rendering bounds to limit the vertex inside (Block Level)
|
Parameter<net.minecraftforge.common.util.ForgeDirection> |
textureSide
Defines which direction will be used to get the block icon.
|
Parameter<java.lang.Boolean> |
useBlockBounds
Defines whether to use the block bounding box instead of renderBounds (Block Level)
|
Parameter<java.lang.Boolean> |
useBlockBrightness
Defines whether to use the block mixBlockBrightness (if false, RenderParameters.brightness will be used) (Block Level)
|
Parameter<java.lang.Boolean> |
useCustomTexture
Define whether a custom texture for drawing.
|
Parameter<java.lang.Boolean> |
useNormals
Defines whether to use the defined normals
|
Parameter<java.lang.Boolean> |
usePerVertexAlpha
Define whether to override each vertex alpha.
|
Parameter<java.lang.Boolean> |
usePerVertexBrightness
Define whether to override each vertex brightness.
|
Parameter<java.lang.Boolean> |
usePerVertexColor
Define whether to override each vertex color.
|
Parameter<java.lang.Boolean> |
useTexture
Defines whether to use a texture (will call addVertexWithUV instead of addVertex)
|
Parameter<java.lang.Boolean> |
useWorldSensitiveIcon
Defines whether to use block.getIcon(world, x, y, z, side) instead of block.getIcon(side, metadata) to get the IIcon
|
Parameter<java.lang.Boolean> |
vertexPositionRelativeToRenderBounds
Defines whether the vertex coordinates are relatives to the bounding box.
|
Constructor and Description |
---|
RenderParameters() |
RenderParameters(RenderParameters params) |
Modifier and Type | Method and Description |
---|---|
void |
merge(RenderParameters params) |
static RenderParameters |
merge(RenderParameters rp1,
RenderParameters rp2) |
void |
reset() |
void |
setAlpha(int alpha) |
void |
setBrightness(int brightness) |
void |
setColor(int color) |
public Parameter<java.lang.Boolean> renderAllFaces
public Parameter<java.lang.Boolean> useBlockBounds
public Parameter<net.minecraft.util.AxisAlignedBB> renderBounds
public Parameter<java.lang.Boolean> vertexPositionRelativeToRenderBounds
public Parameter<java.lang.Boolean> useCustomTexture
public Parameter<java.lang.Boolean> applyTexture
public Parameter<net.minecraft.util.IIcon> icon
public Parameter<java.lang.Boolean> useWorldSensitiveIcon
public Parameter<java.lang.Boolean> useTexture
public Parameter<java.lang.Boolean> interpolateUV
public Parameter<java.lang.Boolean> calculateAOColor
public Parameter<java.lang.Boolean> calculateBrightness
public Parameter<java.lang.Boolean> usePerVertexColor
public Parameter<java.lang.Boolean> usePerVertexAlpha
public Parameter<java.lang.Boolean> usePerVertexBrightness
public Parameter<java.lang.Boolean> useBlockBrightness
public Parameter<java.lang.Boolean> useNormals
public Parameter<java.lang.Integer> colorMultiplier
public Parameter<java.lang.Float> colorFactor
public Parameter<java.lang.Integer> brightness
public Parameter<java.lang.Integer> alpha
public Parameter<net.minecraftforge.common.util.ForgeDirection> direction
public Parameter<net.minecraftforge.common.util.ForgeDirection> textureSide
public Parameter<int[][][]> aoMatrix
public Parameter<java.lang.Boolean> flipU
public Parameter<java.lang.Boolean> flipV
public RenderParameters()
public RenderParameters(RenderParameters params)
public void reset()
public void merge(RenderParameters params)
public static RenderParameters merge(RenderParameters rp1, RenderParameters rp2)
public void setAlpha(int alpha)
setAlpha
in interface ITransformable.Alpha
public void setColor(int color)
setColor
in interface ITransformable.Color
public void setBrightness(int brightness)
setBrightness
in interface ITransformable.Brightness