public static class RackMountableRenderEvent.TileEntity extends RackMountableRenderEvent
renderOverlay(ResourceLocation) to render a slice from a
texture in the vertical area occupied by the mountable.RackMountableRenderEvent.Block, RackMountableRenderEvent.TileEntity| Modifier and Type | Field and Description |
|---|---|
float |
v0
The vertical low and high texture coordinates for the mountable's slot.
|
float |
v1
The vertical low and high texture coordinates for the mountable's slot.
|
data, mountable, rack| Constructor and Description |
|---|
TileEntity(Rack rack,
int mountable,
net.minecraft.nbt.NBTTagCompound data,
float v0,
float v1) |
| Modifier and Type | Method and Description |
|---|---|
void |
renderOverlay(net.minecraft.util.ResourceLocation texture)
Utility method for rendering a texture as the front-side overlay.
|
void |
renderOverlay(net.minecraft.util.ResourceLocation texture,
float u0,
float u1)
Utility method for rendering a texture as the front-side overlay
over a specified horizontal area.
|
void |
renderOverlayFromAtlas(net.minecraft.util.ResourceLocation texture)
Utility method for rendering an atlas texture as the front-side overlay.
|
void |
renderOverlayFromAtlas(net.minecraft.util.ResourceLocation texture,
float u0,
float u1)
Utility method for rendering an atlas texture as the front-side overlay
over a specified horizontal area.
|
public final float v0
public final float v1
public TileEntity(Rack rack, int mountable, net.minecraft.nbt.NBTTagCompound data, float v0, float v1)
public void renderOverlay(net.minecraft.util.ResourceLocation texture)
texture - the texture to use to render the overlay.public void renderOverlay(net.minecraft.util.ResourceLocation texture,
float u0,
float u1)
texture - the texture to use to render the overlay.u0 - the lower end of the vertical area to render at.u1 - the upper end of the vertical area to render at.public void renderOverlayFromAtlas(net.minecraft.util.ResourceLocation texture)
texture - the atlas texture to use to render the overlay.public void renderOverlayFromAtlas(net.minecraft.util.ResourceLocation texture,
float u0,
float u1)
texture - the atlas texture to use to render the overlay.u0 - the lower end of the vertical area to render at.u1 - the upper end of the vertical area to render at.