public class RenderParameters extends java.lang.Object implements ITransformable.Color, ITransformable.Alpha, ITransformable.Brightness, java.lang.Cloneable
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.minecraft.util.EnumFacing> |
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<Icon> |
icon
Defines a
Icon to be used for the rendering. |
Parameter<IIconProvider> |
iconProvider
Defines an
IIconProvider to be used to get the icon for the faces. |
Parameter<java.lang.Boolean> |
interpolateUV
Defines whether to calculate interpolated textures coordinates depending on block bounds (Block Level)
|
protected java.util.List<Parameter<?>> |
listParams
List of parameters inside this
RenderParameters. |
Parameter<java.lang.Boolean> |
renderAllFaces
Defines whether to render all faces even if shoudSideBeRendered is false
|
Parameter<net.minecraft.util.math.AxisAlignedBB> |
renderBounds
Defines the rendering bounds to limit the vertex inside (Block Level)
|
Parameter<java.lang.Boolean> |
rotateIcon
Defines whether to automatically rotate the icons for
DirectionalComponent |
Parameter<net.minecraft.util.EnumFacing> |
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> |
useCustomTexture
Define whether a custom texture for drawing.
|
Parameter<java.lang.Boolean> |
useEnvironmentBrightness
Defines whether to use the block mixBlockBrightness (if false, RenderParameters.brightness will be used) (Block Level)
|
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
|
| Constructor and Description |
|---|
RenderParameters()
Instantiates a new
RenderParameters. |
RenderParameters(RenderParameters params)
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
buildList()
Builds the list of
Parameter in this RenderParameters. |
RenderParameters |
clone() |
void |
merge(RenderParameters params)
|
static RenderParameters |
merge(RenderParameters rp1,
RenderParameters rp2)
|
void |
reset()
Resets all
parameters to their default value. |
void |
setAlpha(int alpha) |
void |
setBrightness(int brightness) |
void |
setColor(int color) |
protected java.util.List<Parameter<?>> listParams
RenderParameters.public Parameter<java.lang.Boolean> renderAllFaces
public Parameter<java.lang.Boolean> useBlockBounds
public Parameter<net.minecraft.util.math.AxisAlignedBB> renderBounds
public Parameter<java.lang.Boolean> useCustomTexture
public Parameter<java.lang.Boolean> applyTexture
public Parameter<IIconProvider> iconProvider
IIconProvider to be used to get the icon for the faces. (Block Level)public Parameter<java.lang.Boolean> useWorldSensitiveIcon
public Parameter<java.lang.Boolean> useTexture
public Parameter<java.lang.Boolean> interpolateUV
public Parameter<java.lang.Boolean> rotateIcon
DirectionalComponentpublic 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> useEnvironmentBrightness
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.minecraft.util.EnumFacing> direction
public Parameter<net.minecraft.util.EnumFacing> textureSide
public Parameter<int[][][]> aoMatrix
public Parameter<java.lang.Boolean> flipU
public Parameter<java.lang.Boolean> flipV
public RenderParameters()
RenderParameters.public RenderParameters(RenderParameters params)
params - the paramsprotected void buildList()
Parameter in this RenderParameters.public void reset()
parameters to their default value.public void merge(RenderParameters params)
params - the paramspublic void setAlpha(int alpha)
setAlpha in interface ITransformable.Alphapublic void setColor(int color)
setColor in interface ITransformable.Colorpublic void setBrightness(int brightness)
setBrightness in interface ITransformable.Brightnesspublic static RenderParameters merge(RenderParameters rp1, RenderParameters rp2)
rp1 - the rp1rp2 - the rp2public RenderParameters clone()
clone in class java.lang.Object