本文整理汇总了Java中net.minecraftforge.client.IItemRenderer.ItemRendererHelper类的典型用法代码示例。如果您正苦于以下问题:Java ItemRendererHelper类的具体用法?Java ItemRendererHelper怎么用?Java ItemRendererHelper使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ItemRendererHelper类属于net.minecraftforge.client.IItemRenderer包,在下文中一共展示了ItemRendererHelper类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: shouldUseRenderHelper
import net.minecraftforge.client.IItemRenderer.ItemRendererHelper; //导入依赖的package包/类
@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;
}
}
}
开发者ID:Unrelentless,项目名称:FantasyCraft-Mod,代码行数:18,代码来源:ItemRenderFairyTale.java
示例2: shouldUseRenderHelper
import net.minecraftforge.client.IItemRenderer.ItemRendererHelper; //导入依赖的package包/类
@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;
}
}
}
开发者ID:Unrelentless,项目名称:FantasyCraft-Mod,代码行数:18,代码来源:ItemRenderBusterSword.java
示例3: shouldUseRenderHelper
import net.minecraftforge.client.IItemRenderer.ItemRendererHelper; //导入依赖的package包/类
@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;
}
开发者ID:twothe,项目名称:DaVincing,代码行数:12,代码来源:CanvasRenderer.java
示例4: shouldUseRenderHelper
import net.minecraftforge.client.IItemRenderer.ItemRendererHelper; //导入依赖的package包/类
@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;
}
开发者ID:hypercross,项目名称:minepainter,代码行数:10,代码来源:CanvasRenderer.java
示例5: shouldUseRenderHelper
import net.minecraftforge.client.IItemRenderer.ItemRendererHelper; //导入依赖的package包/类
@Override
public boolean shouldUseRenderHelper(ItemRenderType type, ItemStack item,
ItemRendererHelper helper) {
return true;
}
开发者ID:ZippyIO,项目名称:IgnitionUtilities,代码行数:6,代码来源:RenderCableBigItem.java
示例6: shouldUseRenderHelper
import net.minecraftforge.client.IItemRenderer.ItemRendererHelper; //导入依赖的package包/类
@Override
public boolean shouldUseRenderHelper(ItemRenderType type, ItemStack item,ItemRendererHelper helper) {
return true;
}
开发者ID:1ayresk,项目名称:MysticalWonders,代码行数:6,代码来源:ItemRenderGlassStair.java
示例7: shouldUseRenderHelper
import net.minecraftforge.client.IItemRenderer.ItemRendererHelper; //导入依赖的package包/类
public boolean shouldUseRenderHelper(IItemRenderer.ItemRenderType t, ItemStack i, IItemRenderer.ItemRendererHelper h){
return false;
}
开发者ID:kieranvs,项目名称:Blockbender,代码行数:4,代码来源:RenderGliderInHand.java
示例8: shouldUseRenderHelper
import net.minecraftforge.client.IItemRenderer.ItemRendererHelper; //导入依赖的package包/类
@Override
public boolean shouldUseRenderHelper(ItemRenderType type, ItemStack item, ItemRendererHelper helper) {
return true;
}
开发者ID:MyshaVoidWalker,项目名称:Draconix-ThePowerOfUseres,代码行数:5,代码来源:ItemRenderStabiliserMatrix.java
示例9: shouldUseRenderHelper
import net.minecraftforge.client.IItemRenderer.ItemRendererHelper; //导入依赖的package包/类
@Override
public boolean shouldUseRenderHelper(ItemRenderType type, ItemStack item, ItemRendererHelper helper) {
return true;
}
开发者ID:grand-mine-inc,项目名称:Steam-and-Steel,代码行数:7,代码来源:RenderItemBlockGlassTank.java
注:本文中的net.minecraftforge.client.IItemRenderer.ItemRendererHelper类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论