本文整理汇总了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);
}
}
示例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;
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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));
}
示例7: isItemValid
import net.minecraft.inventory.SlotFurnaceFuel; //导入方法依赖的package包/类
public boolean isItemValid(ItemStack stack)
{
return TileEntityFurnace.isItemFuel(stack) || SlotFurnaceFuel.isBucket(stack);
}
示例8: getItemStackLimit
import net.minecraft.inventory.SlotFurnaceFuel; //导入方法依赖的package包/类
public int getItemStackLimit(ItemStack stack)
{
return SlotFurnaceFuel.isBucket(stack) ? 1 : super.getItemStackLimit(stack);
}
示例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));
}
示例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)));
}
示例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)));
}
示例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));
}
示例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));
}