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


Java ItemStackHelper.getAndRemove方法代码示例

本文整理汇总了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);
}
 
开发者ID:F1r3w477,项目名称:CustomWorldGen,代码行数:10,代码来源:TileEntityChest.java

示例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);
}
 
开发者ID:F1r3w477,项目名称:CustomWorldGen,代码行数:10,代码来源:TileEntityDispenser.java

示例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);
}
 
开发者ID:F1r3w477,项目名称:CustomWorldGen,代码行数:10,代码来源:TileEntityHopper.java

示例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;
}
 
开发者ID:KodyJKing,项目名称:RandomToolKit,代码行数:10,代码来源:InventoryStack.java

示例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;
}
 
开发者ID:KodyJKing,项目名称:RandomToolKit,代码行数:9,代码来源:TileUDispenser.java

示例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);
}
 
开发者ID:Shinoow,项目名称:AbyssalCraft,代码行数:12,代码来源:TileEntityMaterializer.java

示例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);
   }
 
开发者ID:trigg,项目名称:Firma,代码行数:9,代码来源:AnvilTileEntity.java

示例8: removeStackFromSlot

import net.minecraft.inventory.ItemStackHelper; //导入方法依赖的package包/类
@Override
public ItemStack removeStackFromSlot(int index) {
  markDirty();
  return ItemStackHelper.getAndRemove(codeItemStacks, index);
}
 
开发者ID:ToroCraft,项目名称:Minecoprocessors,代码行数:6,代码来源:TileEntityMinecoprocessor.java

示例9: removeStackFromSlot

import net.minecraft.inventory.ItemStackHelper; //导入方法依赖的package包/类
@Override
public ItemStack removeStackFromSlot(int index) {
	return ItemStackHelper.getAndRemove(itemStacks, index);
}
 
开发者ID:Um-Mitternacht,项目名称:Bewitchment,代码行数:5,代码来源:TileApiary.java

示例10: removeStackFromSlot

import net.minecraft.inventory.ItemStackHelper; //导入方法依赖的package包/类
@Nonnull
@Override
public ItemStack removeStackFromSlot (int index) {
    return ItemStackHelper.getAndRemove(furnaceItemStacks, index);
}
 
开发者ID:jaquadro,项目名称:GardenStuff,代码行数:6,代码来源:TileBloomeryFurnace.java

示例11: removeStackFromSlot

import net.minecraft.inventory.ItemStackHelper; //导入方法依赖的package包/类
@Override
public ItemStack removeStackFromSlot(int index) {
	return ItemStackHelper.getAndRemove(invList, index);
}
 
开发者ID:p455w0rd,项目名称:EndermanEvolution,代码行数:5,代码来源:EntityFrienderman.java

示例12: removeStackFromSlot

import net.minecraft.inventory.ItemStackHelper; //导入方法依赖的package包/类
@Nullable
@Override
public ItemStack removeStackFromSlot(int index)
{
    return ItemStackHelper.getAndRemove(this.contents, index);
}
 
开发者ID:iChun,项目名称:Clef,代码行数:7,代码来源:TileEntityInstrumentPlayer.java

示例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);
}
 
开发者ID:sudofox,项目名称:Backmemed,代码行数:8,代码来源:TileEntityBrewingStand.java

示例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);
}
 
开发者ID:sudofox,项目名称:Backmemed,代码行数:9,代码来源:TileEntityLockableLoot.java

示例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);
}
 
开发者ID:sudofox,项目名称:Backmemed,代码行数:8,代码来源:TileEntityFurnace.java


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