public class ItemRenderPipeline extends RenderPipeline
| Modifier and Type | Field and Description |
|---|---|
java.util.function.Supplier<Color> |
colorMultiplier
Gets the color of the item.
|
ComponentProvider<?> |
componentProvider |
java.util.function.Supplier<org.apache.commons.math3.geometry.euclidean.twod.Vector2D> |
size
Called to get the size of this item to be rendered.
|
java.util.function.Supplier<java.util.Optional<Texture>> |
texture
Called to get the texture of this item.
|
| Constructor and Description |
|---|
ItemRenderPipeline(ComponentProvider<?> componentProvider) |
| Modifier and Type | Method and Description |
|---|---|
MeshModel |
draw(MeshModel model) |
static Face |
drawBack(MeshModel model,
double minX,
double minY,
double minZ,
double maxX,
double maxY,
double maxZ,
java.util.Optional<Texture> texture) |
static Face |
drawFront(MeshModel model,
double minX,
double minY,
double minZ,
double maxX,
double maxY,
double maxZ,
java.util.Optional<Texture> texture) |
static java.util.Set<Face> |
drawLeftAndRight(MeshModel model,
double minX,
double minY,
double minZ,
double maxX,
double maxY,
double maxZ,
java.util.Optional<Texture> texture) |
static java.util.Set<Face> |
drawUpAndDown(MeshModel model,
double minX,
double minY,
double minZ,
double maxX,
double maxY,
double maxZ,
java.util.Optional<Texture> texture) |
ItemRenderPipeline |
withColor(Color colorMultiplier)
This method is called to specify a color multiplier to use for the item.
|
ItemRenderPipeline |
withColor(java.util.function.Supplier<Color> colorMultiplier)
This method is called to specify a color multiplier to use for the item.
|
ItemRenderPipeline |
withSize(java.util.function.Supplier<org.apache.commons.math3.geometry.euclidean.twod.Vector2D> size)
This method is called to specify the size of the item, defaults to a 1×1 square.
|
ItemRenderPipeline |
withSize(org.apache.commons.math3.geometry.euclidean.twod.Vector2D size)
This method is called to specify the size of the item, defaults to a 1×1 square.
|
ItemRenderPipeline |
withTexture(java.util.function.Supplier<java.util.Optional<Texture>> texture)
This method is called to specify a texture to use for the item.
|
ItemRenderPipeline |
withTexture(Texture texture)
This method is called to specify a texture to use for the item.
|
public final ComponentProvider<?> componentProvider
public java.util.function.Supplier<java.util.Optional<Texture>> texture
public java.util.function.Supplier<org.apache.commons.math3.geometry.euclidean.twod.Vector2D> size
public java.util.function.Supplier<Color> colorMultiplier
public ItemRenderPipeline(ComponentProvider<?> componentProvider)
public ItemRenderPipeline withTexture(java.util.function.Supplier<java.util.Optional<Texture>> texture)
texture - The Texture for the item.public ItemRenderPipeline withTexture(Texture texture)
texture - The Texture to use for all sides.public ItemRenderPipeline withSize(java.util.function.Supplier<org.apache.commons.math3.geometry.euclidean.twod.Vector2D> size)
size - A supplier that returns
the Vector2D which specifies the item size.public ItemRenderPipeline withSize(org.apache.commons.math3.geometry.euclidean.twod.Vector2D size)
size - The Vector2D which specifies the item size.public ItemRenderPipeline withColor(java.util.function.Supplier<Color> colorMultiplier)
colorMultiplier - A supplier that returns
the Color multiplier for the item.public ItemRenderPipeline withColor(Color colorMultiplier)
colorMultiplier - The Color multiplier for the item.public static Face drawBack(MeshModel model, double minX, double minY, double minZ, double maxX, double maxY, double maxZ, java.util.Optional<Texture> texture)
public static Face drawFront(MeshModel model, double minX, double minY, double minZ, double maxX, double maxY, double maxZ, java.util.Optional<Texture> texture)
public static java.util.Set<Face> drawUpAndDown(MeshModel model, double minX, double minY, double minZ, double maxX, double maxY, double maxZ, java.util.Optional<Texture> texture)