Java Code Examples for net.minecraftforge.client.IItemRenderer#ItemRendererHelper
The following examples show how to use
net.minecraftforge.client.IItemRenderer#ItemRendererHelper .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: QCraftProxyClient.java From qcraft-mod with Apache License 2.0 | 6 votes |
@Override public boolean shouldUseRenderHelper( IItemRenderer.ItemRenderType type, ItemStack item, IItemRenderer.ItemRendererHelper helper ) { switch( helper ) { case ENTITY_ROTATION: case ENTITY_BOBBING: case EQUIPPED_BLOCK: case BLOCK_3D: case INVENTORY_BLOCK: { return true; } default: { return false; } } }
Example 2
Source File: BW_GT_ItemRenderer.java From bartworks with MIT License | 5 votes |
@Override public boolean shouldUseRenderHelper(IItemRenderer.ItemRenderType aType, ItemStack aStack, IItemRenderer.ItemRendererHelper aHelper) { if (GT_Utility.isStackInvalid(aStack)) { return false; } else { return aType == IItemRenderer.ItemRenderType.ENTITY; } }
Example 3
Source File: ItemWrapperMethods.java From NOVA-Core with GNU Lesser General Public License v3.0 | 4 votes |
@Override default boolean shouldUseRenderHelper(IItemRenderer.ItemRenderType type, ItemStack item, IItemRenderer.ItemRendererHelper helper) { return true; }
Example 4
Source File: ItemJarExtendedNodeRenderer.java From Gadomancy with GNU Lesser General Public License v3.0 | 4 votes |
public boolean shouldUseRenderHelper(IItemRenderer.ItemRenderType type, ItemStack item, IItemRenderer.ItemRendererHelper helper) { if (helper == IItemRenderer.ItemRendererHelper.EQUIPPED_BLOCK) { return false; } return true; }
Example 5
Source File: ItemNodeRenderer.java From Gadomancy with GNU Lesser General Public License v3.0 | 4 votes |
public boolean shouldUseRenderHelper(IItemRenderer.ItemRenderType type, ItemStack item, IItemRenderer.ItemRendererHelper helper) { if (helper == IItemRenderer.ItemRendererHelper.EQUIPPED_BLOCK) { return false; } return true; }