public class ConnectedTextureRenderPipeline extends BlockRenderPipeline
| Modifier and Type | Field and Description |
|---|---|
Block |
block |
java.util.function.Supplier<java.lang.Integer> |
connectMask
The mask the represents which sides the block should render its connected texture.
|
Texture |
edgeTexture |
java.util.function.Predicate<Direction> |
faceFilter
A filter of which sides the connected texture renderer should render.
|
bounds, colorMultiplier, componentProvider, renderSide, texture| Constructor and Description |
|---|
ConnectedTextureRenderPipeline(Block block,
Texture edgeTexture) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
renderFace(Direction direction,
Model model)
Apply connected texture on top face.
|
ConnectedTextureRenderPipeline |
withConnectMask(java.util.function.Supplier<java.lang.Integer> connectMask) |
ConnectedTextureRenderPipeline |
withFaceFilter(java.util.function.Predicate<Direction> faceFilter)
Set the filter used to determine if this pipeline should handle these sides.
|
ConnectedTextureRenderPipeline |
withFaceMask(int faceMask)
Set the filter used to determine if this pipeline should handle these sides.
|
ConnectedTextureRenderPipeline |
withFaces(Direction... faces)
Set the filter used to determine if this pipeline should handle these sides.
|
draw, drawCube, drawCube, drawCube, drawDir, drawDown, drawEast, drawNorth, drawSouth, drawUp, drawWest, filter, withBounds, withBounds, withColor, withColor, withTexture, withTexturepublic final Block block
public final Texture edgeTexture
public java.util.function.Supplier<java.lang.Integer> connectMask
public java.util.function.Predicate<Direction> faceFilter
public ConnectedTextureRenderPipeline withConnectMask(java.util.function.Supplier<java.lang.Integer> connectMask)
public ConnectedTextureRenderPipeline withFaceFilter(java.util.function.Predicate<Direction> faceFilter)
faceFilter - A filter of which sides the connected texture renderer should render.public ConnectedTextureRenderPipeline withFaces(Direction... faces)
faces - An array of which sides the connected texture renderer should render.public ConnectedTextureRenderPipeline withFaceMask(int faceMask)
faceMask - A mask of which sides the connected texture renderer should render.
Each bit corresponds to a direction.
E.g: 000011 will render top and bottom