当前位置: 首页>>代码示例>>Java>>正文


Java SlotFurnaceFuel.isBucket方法代码示例

本文整理汇总了Java中net.minecraft.inventory.SlotFurnaceFuel.isBucket方法的典型用法代码示例。如果您正苦于以下问题:Java SlotFurnaceFuel.isBucket方法的具体用法?Java SlotFurnaceFuel.isBucket怎么用?Java SlotFurnaceFuel.isBucket使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在net.minecraft.inventory.SlotFurnaceFuel的用法示例。


在下文中一共展示了SlotFurnaceFuel.isBucket方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: isStackValidForSlot

import net.minecraft.inventory.SlotFurnaceFuel; //导入方法依赖的package包/类
private boolean isStackValidForSlot(int index, @Nonnull ItemStack stack)
{
    if (!slotChecksEnabled)
        return true;

    if (type.isOutputSlot(index))
    {
        return false;
    } else if (type.isInputSlot(index))
    {
        return true;
    } else
    {
        return TileEntityFurnace.isItemFuel(stack) || SlotFurnaceFuel.isBucket(stack);
    }
}
 
开发者ID:cubex2,项目名称:morefurnaces,代码行数:17,代码来源:ItemHandlerFurnace.java

示例2: isItemValidForSlot

import net.minecraft.inventory.SlotFurnaceFuel; //导入方法依赖的package包/类
/**
 * Returns true if automation is allowed to insert the given stack (ignoring stack size) into the given slot. For
 * guis use Slot.isItemValid
 */
public boolean isItemValidForSlot(int index, ItemStack stack)
{
    if (index == 2)
    {
        return false;
    }
    else if (index != 1)
    {
        return true;
    }
    else
    {
        ItemStack itemstack = (ItemStack)this.furnaceItemStacks.get(1);
        return isItemFuel(stack) || SlotFurnaceFuel.isBucket(stack) && itemstack.getItem() != Items.BUCKET;
    }
}
 
开发者ID:sudofox,项目名称:Backmemed,代码行数:21,代码来源:TileEntityFurnace.java

示例3: isItemValidForSlot

import net.minecraft.inventory.SlotFurnaceFuel; //导入方法依赖的package包/类
/**
 * Returns true if automation is allowed to insert the given stack (ignoring stack size) into the given slot. For
 * guis use Slot.isItemValid
 */
public boolean isItemValidForSlot(int index, ItemStack stack)
{
    if (index == 2)
    {
        return false;
    }
    else if (index != 1)
    {
        return true;
    }
    else
    {
        ItemStack itemstack = this.furnaceItemStacks[1];
        return isItemFuel(stack) || SlotFurnaceFuel.isBucket(stack) && (itemstack == null || itemstack.getItem() != Items.BUCKET);
    }
}
 
开发者ID:F1r3w477,项目名称:CustomWorldGen,代码行数:21,代码来源:TileEntityFurnace.java

示例4: isItemValidForSlot

import net.minecraft.inventory.SlotFurnaceFuel; //导入方法依赖的package包/类
/**
 * Returns true if automation is allowed to insert the given stack (ignoring
 * stack size) into the given slot.
 */
@Override
public boolean isItemValidForSlot(int index, ItemStack stack) {
	if (index > 9)
		return false;
	else if (index != 9)
		return true;
	else {
		ItemStack itemstack = this.furnaceItemStacks.get(9);
		return isItemFuel(stack)
				|| SlotFurnaceFuel.isBucket(stack) && (itemstack.isEmpty() || itemstack.getItem() != Items.BUCKET);
	}
}
 
开发者ID:rafradek,项目名称:Mods,代码行数:17,代码来源:TileEntityAmmoFurnace.java

示例5: isItemValidForSlot

import net.minecraft.inventory.SlotFurnaceFuel; //导入方法依赖的package包/类
@Override
public boolean isItemValidForSlot(int slot, ItemStack stack) {
    if (slot == 2)
        return false;
    else if (slot != 1)
        return true;

    else {
        final ItemStack itemStack = slots.get(1);
        return isItemFuel(stack) || SlotFurnaceFuel.isBucket(stack) && (itemStack == ItemStack.EMPTY || itemStack.getItem() != Items.BUCKET);
    }
}
 
开发者ID:hockeyhurd,项目名称:HCoreLib,代码行数:13,代码来源:TileFurnace.java

示例6: isItemValidForSlot

import net.minecraft.inventory.SlotFurnaceFuel; //导入方法依赖的package包/类
/**
 * Returns true if automation is allowed to insert the given stack (ignoring stack size) into the given slot.
 */
public boolean isItemValidForSlot(int index, ItemStack stack)
{
    return index == 2 ? false : (index != 1 ? true : isItemFuel(stack) || SlotFurnaceFuel.isBucket(stack));
}
 
开发者ID:Notoh,项目名称:DecompiledMinecraft,代码行数:8,代码来源:TileEntityFurnace.java

示例7: isItemValid

import net.minecraft.inventory.SlotFurnaceFuel; //导入方法依赖的package包/类
public boolean isItemValid(ItemStack stack)
{
    return TileEntityFurnace.isItemFuel(stack) || SlotFurnaceFuel.isBucket(stack);
}
 
开发者ID:cubex2,项目名称:morefurnaces,代码行数:5,代码来源:SlotFuel.java

示例8: getItemStackLimit

import net.minecraft.inventory.SlotFurnaceFuel; //导入方法依赖的package包/类
public int getItemStackLimit(ItemStack stack)
{
    return SlotFurnaceFuel.isBucket(stack) ? 1 : super.getItemStackLimit(stack);
}
 
开发者ID:cubex2,项目名称:morefurnaces,代码行数:5,代码来源:SlotFuel.java

示例9: isItemValidForSlot

import net.minecraft.inventory.SlotFurnaceFuel; //导入方法依赖的package包/类
/**
 * Returns true if automation is allowed to insert the given stack (ignoring stack size) into the given slot.
 */
public boolean isItemValidForSlot(int index, ItemStack stack) {
    return index == 2 ? false : (index != 1 ? true : isItemFuel(stack) || SlotFurnaceFuel.isBucket(stack));
}
 
开发者ID:TEAMModding,项目名称:FutureCraft,代码行数:7,代码来源:TileEntityAlloyFurnace.java

示例10: isItemValidForSlot

import net.minecraft.inventory.SlotFurnaceFuel; //导入方法依赖的package包/类
@Override
public boolean isItemValidForSlot(int index, ItemStack stack)
{
	return index != 2 && (index != 1 || (isItemFuel(stack) || SlotFurnaceFuel.isBucket(stack)));
}
 
开发者ID:MinestrapTeam,项目名称:Minestrappolation-4,代码行数:6,代码来源:TileEntityAlloy.java

示例11: isItemValidForSlot

import net.minecraft.inventory.SlotFurnaceFuel; //导入方法依赖的package包/类
@Override
public boolean isItemValidForSlot(int index, ItemStack stack)
{
	return !(index == 2 || index == 3) && (index != 1 || (isItemFuel(stack) || SlotFurnaceFuel.isBucket(stack)));
}
 
开发者ID:MinestrapTeam,项目名称:Minestrappolation-4,代码行数:6,代码来源:TileEntityCrusher.java

示例12: isItemValidForSlot

import net.minecraft.inventory.SlotFurnaceFuel; //导入方法依赖的package包/类
@Override
public boolean isItemValidForSlot(int index, ItemStack stack)
{
	return index == 2 ? false : (index != 1 ? true : isItemFuel(stack) || SlotFurnaceFuel.isBucket(stack));
}
 
开发者ID:Geforce132,项目名称:SecurityCraft,代码行数:6,代码来源:TileEntityKeypadFurnace.java

示例13: isItemValidForSlot

import net.minecraft.inventory.SlotFurnaceFuel; //导入方法依赖的package包/类
@Override
public boolean isItemValidForSlot(int index, ItemStack stack)
{
    return index == 2 ? false : (index != 1 ? true : isItemFuel(stack) || SlotFurnaceFuel.isBucket(stack));
}
 
开发者ID:Superloup10,项目名称:Wolf-s-addons,代码行数:6,代码来源:TileEntityFurnace.java


注:本文中的net.minecraft.inventory.SlotFurnaceFuel.isBucket方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。