本文整理汇总了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;
}
}
}
示例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;
}
}
}
示例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;
}
示例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;
}
示例5: shouldUseRenderHelper
import net.minecraftforge.client.IItemRenderer.ItemRendererHelper; //导入依赖的package包/类
@Override
public boolean shouldUseRenderHelper(ItemRenderType type, ItemStack item,
ItemRendererHelper helper) {
return true;
}
示例6: shouldUseRenderHelper
import net.minecraftforge.client.IItemRenderer.ItemRendererHelper; //导入依赖的package包/类
@Override
public boolean shouldUseRenderHelper(ItemRenderType type, ItemStack item,ItemRendererHelper helper) {
return true;
}
示例7: shouldUseRenderHelper
import net.minecraftforge.client.IItemRenderer.ItemRendererHelper; //导入依赖的package包/类
public boolean shouldUseRenderHelper(IItemRenderer.ItemRenderType t, ItemStack i, IItemRenderer.ItemRendererHelper h){
return false;
}
示例8: shouldUseRenderHelper
import net.minecraftforge.client.IItemRenderer.ItemRendererHelper; //导入依赖的package包/类
@Override
public boolean shouldUseRenderHelper(ItemRenderType type, ItemStack item, ItemRendererHelper helper) {
return true;
}
示例9: shouldUseRenderHelper
import net.minecraftforge.client.IItemRenderer.ItemRendererHelper; //导入依赖的package包/类
@Override
public boolean shouldUseRenderHelper(ItemRenderType type, ItemStack item, ItemRendererHelper helper) {
return true;
}