public interface IPartRenderHelper
Modifier and Type | Method and Description |
---|---|
net.minecraft.block.Block |
getBlock() |
net.minecraftforge.common.util.ForgeDirection |
getWorldX() |
net.minecraftforge.common.util.ForgeDirection |
getWorldY() |
net.minecraftforge.common.util.ForgeDirection |
getWorldZ() |
void |
normalRendering()
disables, useSimplifiedRendering.
|
void |
renderBlock(int x,
int y,
int z,
net.minecraft.client.renderer.RenderBlocks renderer)
static renderer
|
void |
renderBlockCurrentBounds(int x,
int y,
int z,
net.minecraft.client.renderer.RenderBlocks renderer)
render a block using the current renderer state.
|
void |
renderFace(int x,
int y,
int z,
net.minecraft.util.IIcon ico,
net.minecraftforge.common.util.ForgeDirection face,
net.minecraft.client.renderer.RenderBlocks renderer)
static renderer
|
void |
renderFaceCutout(int x,
int y,
int z,
net.minecraft.util.IIcon ico,
net.minecraftforge.common.util.ForgeDirection face,
float edgeThickness,
net.minecraft.client.renderer.RenderBlocks renderer)
static renderer
|
void |
renderForPass(int pass)
allow you to enable your part to render during the alpha pass or the standard pass.
|
void |
renderInventoryBox(net.minecraft.client.renderer.RenderBlocks renderer)
render a box in inventory renderer.
|
void |
renderInventoryFace(net.minecraft.util.IIcon IIcon,
net.minecraftforge.common.util.ForgeDirection direction,
net.minecraft.client.renderer.RenderBlocks renderer)
render a single face in inventory renderer.
|
void |
setBounds(float minX,
float minY,
float minZ,
float maxX,
float maxY,
float maxZ)
sets the Render Helpers Block Bounds.
|
void |
setFacesToRender(java.util.EnumSet<net.minecraftforge.common.util.ForgeDirection> complementOf)
Set which faces to render, remember to set back to ALL when you are done.
|
void |
setInvColor(int whiteVariant)
configure the color multiplier for the inventory renderer.
|
void |
setTexture(net.minecraft.util.IIcon ico)
inventory, and static renderer.
|
void |
setTexture(net.minecraft.util.IIcon down,
net.minecraft.util.IIcon up,
net.minecraft.util.IIcon north,
net.minecraft.util.IIcon south,
net.minecraft.util.IIcon west,
net.minecraft.util.IIcon east)
inventory, and static renderer.
|
ISimplifiedBundle |
useSimplifiedRendering(int x,
int y,
int z,
IBoxProvider p,
ISimplifiedBundle sim)
Pre-Calculates default lighting for the part, call this before using the render helper to render anything else to
get simplified, but faster lighting for more then one block.
|
void setBounds(float minX, float minY, float minZ, float maxX, float maxY, float maxZ)
No complaints about the size, I like using pixels :P
minX
- minimal x boundminY
- minimal y boundminZ
- minimal z boundmaxX
- maximal x boundmaxY
- maximal y boundmaxZ
- maximal z boundvoid renderFace(int x, int y, int z, net.minecraft.util.IIcon ico, net.minecraftforge.common.util.ForgeDirection face, net.minecraft.client.renderer.RenderBlocks renderer)
render a single face.
x
- x coord of party
- y coord of partz
- z coord of partico
- icon of partface
- direction its facingrenderer
- renderer of partvoid renderFaceCutout(int x, int y, int z, net.minecraft.util.IIcon ico, net.minecraftforge.common.util.ForgeDirection face, float edgeThickness, net.minecraft.client.renderer.RenderBlocks renderer)
render a box with a cut out box in the center.
x
- x pos of party
- y pos of partz
- z pos of partico
- icon of partface
- face of partedgeThickness
- thickness of the edgerenderer
- renderervoid renderBlock(int x, int y, int z, net.minecraft.client.renderer.RenderBlocks renderer)
render a block of specified bounds.
x
- x pos of blocky
- y pos of blockz
- z pos of blockrenderer
- renderervoid renderInventoryFace(net.minecraft.util.IIcon IIcon, net.minecraftforge.common.util.ForgeDirection direction, net.minecraft.client.renderer.RenderBlocks renderer)
IIcon
- icon of partdirection
- face of partrenderer
- renderervoid renderInventoryBox(net.minecraft.client.renderer.RenderBlocks renderer)
renderer
- renderervoid setTexture(net.minecraft.util.IIcon down, net.minecraft.util.IIcon up, net.minecraft.util.IIcon north, net.minecraft.util.IIcon south, net.minecraft.util.IIcon west, net.minecraft.util.IIcon east)
set unique icons for each side of the block.
down
- down faceup
- up facenorth
- north facesouth
- south facewest
- west faceeast
- east facevoid setTexture(net.minecraft.util.IIcon ico)
set all sides to a single IIcon.
ico
- to be set iconvoid setInvColor(int whiteVariant)
whiteVariant
- color multipliernet.minecraft.block.Block getBlock()
net.minecraftforge.common.util.ForgeDirection getWorldX()
net.minecraftforge.common.util.ForgeDirection getWorldY()
net.minecraftforge.common.util.ForgeDirection getWorldZ()
ISimplifiedBundle useSimplifiedRendering(int x, int y, int z, IBoxProvider p, ISimplifiedBundle sim)
Only worth it if you render more then 1 block.
void normalRendering()
void renderBlockCurrentBounds(int x, int y, int z, net.minecraft.client.renderer.RenderBlocks renderer)
x
- x pos of party
- y pos of partz
- z pos of partrenderer
- renderer of partvoid renderForPass(int pass)
pass
- render passvoid setFacesToRender(java.util.EnumSet<net.minecraftforge.common.util.ForgeDirection> complementOf)
complementOf
- sides to render