Java 类net.minecraftforge.client.IItemRenderer.ItemRendererHelper 实例源码

项目:FantasyCraft-Mod    文件:ItemRenderFairyTale.java   
@Override
public boolean shouldUseRenderHelper(ItemRenderType type, ItemStack item,
        ItemRendererHelper helper) {
    switch (type) {
    case ENTITY: {
        return (helper == ItemRendererHelper.ENTITY_BOBBING ||
                helper == ItemRendererHelper.ENTITY_ROTATION ||
                helper == ItemRendererHelper.BLOCK_3D);
    }
    case INVENTORY: {
        return (helper == ItemRendererHelper.BLOCK_3D || helper == ItemRendererHelper.INVENTORY_BLOCK);
    }
    default: {
        return false;
    }
    }
}
项目:FantasyCraft-Mod    文件:ItemRenderBusterSword.java   
@Override
public boolean shouldUseRenderHelper(ItemRenderType type, ItemStack item,
        ItemRendererHelper helper) {
    switch (type) {
    case ENTITY: {
        return (helper == ItemRendererHelper.ENTITY_BOBBING ||
                helper == ItemRendererHelper.ENTITY_ROTATION ||
                helper == ItemRendererHelper.BLOCK_3D);
    }
    case INVENTORY: {
        return (helper == ItemRendererHelper.INVENTORY_BLOCK);
    }
    default: {
        return false;
    }
    }
}
项目:DaVincing    文件:CanvasRenderer.java   
@Override
public boolean shouldUseRenderHelper(ItemRenderType type, ItemStack item, ItemRendererHelper helper) {
  if (overrideUseRenderHelper) {
    return true;
  }
  if (type == ItemRenderType.ENTITY) {
    return helper == ItemRendererHelper.ENTITY_ROTATION
            || helper == ItemRendererHelper.ENTITY_BOBBING;
  }
  return false;
}
项目:minepainter    文件:CanvasRenderer.java   
@Override
public boolean shouldUseRenderHelper(ItemRenderType type, ItemStack item, ItemRendererHelper helper) {
    if(overrideUseRenderHelper)return true;
    if(type == ItemRenderType.ENTITY){
        return helper == ItemRendererHelper.ENTITY_ROTATION ||
               helper == ItemRendererHelper.ENTITY_BOBBING;
    }
    return false;
}
项目:IgnitionUtilities    文件:RenderCableBigItem.java   
@Override
public boolean shouldUseRenderHelper(ItemRenderType type, ItemStack item,
        ItemRendererHelper helper) {
    return true;
}
项目:IgnitionUtilities    文件:RenderCablePlaneItem.java   
@Override
public boolean shouldUseRenderHelper(ItemRenderType type, ItemStack item,
        ItemRendererHelper helper) {
    return true;
}
项目:MysticalWonders    文件:ItemRenderGlassStair.java   
@Override
public boolean shouldUseRenderHelper(ItemRenderType type, ItemStack item,ItemRendererHelper helper) {

    return true;
}
项目:MysticalWonders    文件:ItemRenderTable.java   
@Override
public boolean shouldUseRenderHelper(ItemRenderType type, ItemStack item,ItemRendererHelper helper) {

    return true;
}
项目:Blockbender    文件:RenderGliderInHand.java   
public boolean shouldUseRenderHelper(IItemRenderer.ItemRenderType t, ItemStack i, IItemRenderer.ItemRendererHelper h){
    return false;
}
项目:Draconix-ThePowerOfUseres    文件:ItemRenderStabiliserMatrix.java   
@Override
public boolean shouldUseRenderHelper(ItemRenderType type, ItemStack item, ItemRendererHelper helper) {
    return true;
}
项目:Draconix-ThePowerOfUseres    文件:ItemRenderResearchTable.java   
@Override
public boolean shouldUseRenderHelper(ItemRenderType type, ItemStack item, ItemRendererHelper helper) {
    return true;
}
项目:Steam-and-Steel    文件:RenderItemBlockGlassTank.java   
@Override
public boolean shouldUseRenderHelper(ItemRenderType type, ItemStack item, ItemRendererHelper helper) {

    return true;

}