public class SimpleModuleRenderer extends AbstractModuleItemRenderer
AbstractModuleItemRenderer using the
texture specified for the item module as the overlay texture.LOCATION_MODULE_MODEL, LOCATION_MODULE_TEXTURE, model, MODULE_MODEL| Constructor and Description |
|---|
SimpleModuleRenderer() |
| Modifier and Type | Method and Description |
|---|---|
net.minecraft.util.IIcon |
getOverlayIcon(net.minecraftforge.client.IItemRenderer.ItemRenderType type,
net.minecraft.item.ItemStack item,
java.lang.Object... data)
Get the icon representation of the texture to use as the overlay of the
module (specifying the texture coordinates on the texture location
specified in
AbstractModuleItemRenderer.getTextureLocation(net.minecraftforge.client.IItemRenderer.ItemRenderType, net.minecraft.item.ItemStack, java.lang.Object...)). |
SimpleModuleRenderer |
setIgnoreLighting(boolean value) |
protected boolean |
shouldIgnoreLighting(net.minecraftforge.client.IItemRenderer.ItemRenderType type,
net.minecraft.item.ItemStack item,
java.lang.Object... data)
Determines whether the overlay texture of the module should ignore lighting,
i.e.
|
getTextureLocation, handleRenderType, renderCasing, renderItem, renderOverlay, shouldUseRenderHelperpublic SimpleModuleRenderer setIgnoreLighting(boolean value)
public net.minecraft.util.IIcon getOverlayIcon(net.minecraftforge.client.IItemRenderer.ItemRenderType type,
net.minecraft.item.ItemStack item,
java.lang.Object... data)
AbstractModuleItemRendererAbstractModuleItemRenderer.getTextureLocation(net.minecraftforge.client.IItemRenderer.ItemRenderType, net.minecraft.item.ItemStack, java.lang.Object...)).getOverlayIcon in class AbstractModuleItemRenderertype - the current render type.item - the item stack of the module being rendered.data - additional data (unused).protected boolean shouldIgnoreLighting(net.minecraftforge.client.IItemRenderer.ItemRenderType type,
net.minecraft.item.ItemStack item,
java.lang.Object... data)
AbstractModuleItemRenderershouldIgnoreLighting in class AbstractModuleItemRenderertype - the current render type.item - the item stack of the module being rendered.data - additional data (unused).