本文整理汇总了Java中net.minecraft.inventory.ItemStackHelper.getAndRemove方法的典型用法代码示例。如果您正苦于以下问题:Java ItemStackHelper.getAndRemove方法的具体用法?Java ItemStackHelper.getAndRemove怎么用?Java ItemStackHelper.getAndRemove使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类net.minecraft.inventory.ItemStackHelper
的用法示例。
在下文中一共展示了ItemStackHelper.getAndRemove方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: removeStackFromSlot
import net.minecraft.inventory.ItemStackHelper; //导入方法依赖的package包/类
/**
* Removes a stack from the given slot and returns it.
*/
@Nullable
public ItemStack removeStackFromSlot(int index)
{
this.fillWithLoot((EntityPlayer)null);
return ItemStackHelper.getAndRemove(this.chestContents, index);
}
示例2: removeStackFromSlot
import net.minecraft.inventory.ItemStackHelper; //导入方法依赖的package包/类
/**
* Removes a stack from the given slot and returns it.
*/
@Nullable
public ItemStack removeStackFromSlot(int index)
{
this.fillWithLoot((EntityPlayer)null);
return ItemStackHelper.getAndRemove(this.stacks, index);
}
示例3: removeStackFromSlot
import net.minecraft.inventory.ItemStackHelper; //导入方法依赖的package包/类
/**
* Removes a stack from the given slot and returns it.
*/
@Nullable
public ItemStack removeStackFromSlot(int index)
{
this.fillWithLoot((EntityPlayer)null);
return ItemStackHelper.getAndRemove(this.inventory, index);
}
示例4: removeStackFromSlot
import net.minecraft.inventory.ItemStackHelper; //导入方法依赖的package包/类
@Nullable
@Override
public ItemStack removeStackFromSlot(int index) {
loadAt(index);
ItemStack result = ItemStackHelper.getAndRemove(inventory, index);
saveAt(index);
onChange();
return result;
}
示例5: removeStackFromSlot
import net.minecraft.inventory.ItemStackHelper; //导入方法依赖的package包/类
@Nullable
@Override
public ItemStack removeStackFromSlot(int index) {
ItemStack stack = ItemStackHelper.getAndRemove(inventory, index);
if(stack != null)
markDirty();
return stack;
}
示例6: removeStackFromSlot
import net.minecraft.inventory.ItemStackHelper; //导入方法依赖的package包/类
/**
* When some containers are closed they call this on each slot, then drop whatever it returns as an EntityItem -
* like when you close a workbench GUI.
*/
@Override
public ItemStack removeStackFromSlot(int par1)
{
if(par1 == 0) isDirty = true;
if(par1 == 1) setDisplayName(null);
return ItemStackHelper.getAndRemove(materializerItemStacks, par1);
}
示例7: removeStackFromSlot
import net.minecraft.inventory.ItemStackHelper; //导入方法依赖的package包/类
/**
* Removes a stack from the given slot and returns it.
*/
@Override
public ItemStack removeStackFromSlot(int index)
{
return ItemStackHelper.getAndRemove(this.inventory, index);
}
示例8: removeStackFromSlot
import net.minecraft.inventory.ItemStackHelper; //导入方法依赖的package包/类
@Override
public ItemStack removeStackFromSlot(int index) {
markDirty();
return ItemStackHelper.getAndRemove(codeItemStacks, index);
}
示例9: removeStackFromSlot
import net.minecraft.inventory.ItemStackHelper; //导入方法依赖的package包/类
@Override
public ItemStack removeStackFromSlot(int index) {
return ItemStackHelper.getAndRemove(itemStacks, index);
}
示例10: removeStackFromSlot
import net.minecraft.inventory.ItemStackHelper; //导入方法依赖的package包/类
@Nonnull
@Override
public ItemStack removeStackFromSlot (int index) {
return ItemStackHelper.getAndRemove(furnaceItemStacks, index);
}
示例11: removeStackFromSlot
import net.minecraft.inventory.ItemStackHelper; //导入方法依赖的package包/类
@Override
public ItemStack removeStackFromSlot(int index) {
return ItemStackHelper.getAndRemove(invList, index);
}
示例12: removeStackFromSlot
import net.minecraft.inventory.ItemStackHelper; //导入方法依赖的package包/类
@Nullable
@Override
public ItemStack removeStackFromSlot(int index)
{
return ItemStackHelper.getAndRemove(this.contents, index);
}
示例13: removeStackFromSlot
import net.minecraft.inventory.ItemStackHelper; //导入方法依赖的package包/类
/**
* Removes a stack from the given slot and returns it.
*/
public ItemStack removeStackFromSlot(int index)
{
return ItemStackHelper.getAndRemove(this.brewingItemStacks, index);
}
示例14: removeStackFromSlot
import net.minecraft.inventory.ItemStackHelper; //导入方法依赖的package包/类
/**
* Removes a stack from the given slot and returns it.
*/
public ItemStack removeStackFromSlot(int index)
{
this.fillWithLoot((EntityPlayer)null);
return ItemStackHelper.getAndRemove(this.func_190576_q(), index);
}
示例15: removeStackFromSlot
import net.minecraft.inventory.ItemStackHelper; //导入方法依赖的package包/类
/**
* Removes a stack from the given slot and returns it.
*/
public ItemStack removeStackFromSlot(int index)
{
return ItemStackHelper.getAndRemove(this.furnaceItemStacks, index);
}