本文整理汇总了Java中appeng.api.networking.crafting.ICraftingPatternDetails类的典型用法代码示例。如果您正苦于以下问题:Java ICraftingPatternDetails类的具体用法?Java ICraftingPatternDetails怎么用?Java ICraftingPatternDetails使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ICraftingPatternDetails类属于appeng.api.networking.crafting包,在下文中一共展示了ICraftingPatternDetails类的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: pushPattern
import appeng.api.networking.crafting.ICraftingPatternDetails; //导入依赖的package包/类
@Override
public boolean pushPattern(ICraftingPatternDetails iCraftingPatternDetails, InventoryCrafting inventoryCrafting) {
if (iCraftingPatternDetails instanceof RuneAssemblerCraftingPattern && !isCrafting/* && inputs[0] == null*/){
output = iCraftingPatternDetails.getOutputs()[0].getItemStack();
inputs = iCraftingPatternDetails.getInputs();
manacost = ((RuneAssemblerCraftingPattern) iCraftingPatternDetails).getManaUsage();
//return true;
return currMana >= (manacost * 2);
}
return false;
}
开发者ID:ParadoxCodersTeam,项目名称:Botanic-Energistics,代码行数:12,代码来源:TileAEElvenPortal.java
示例2: pushPattern
import appeng.api.networking.crafting.ICraftingPatternDetails; //导入依赖的package包/类
@Override
public boolean pushPattern(ICraftingPatternDetails iCraftingPatternDetails, InventoryCrafting inventoryCrafting) {
if (iCraftingPatternDetails instanceof RuneAssemblerCraftingPattern && !isCrafting/* && inputs[0] == null*/){
output = iCraftingPatternDetails.getOutputs()[0].getItemStack();
inputs = iCraftingPatternDetails.getInputs();
manacost = ((RuneAssemblerCraftingPattern) iCraftingPatternDetails).getManaUsage();
//return true;
return currMana >= (manacost * 2);
}
return false;
}
开发者ID:ParadoxCodersTeam,项目名称:Botanic-Energistics,代码行数:12,代码来源:TileAERuneAssembler.java
示例3: pushPattern
import appeng.api.networking.crafting.ICraftingPatternDetails; //导入依赖的package包/类
@Override
public boolean pushPattern(ICraftingPatternDetails pattern, InventoryCrafting inventoryCrafting) {
if (!isCrafting && pattern instanceof RuneAssemblerCraftingPattern) {
output = pattern.getOutputs()[0].getItemStack();
input = pattern.getInputs()[0].getItemStack();
manaCost = ((RuneAssemblerCraftingPattern) pattern).getManaUsage() * multiplier;
//return true;
return currMana >= manaCost;
}
return false;
}
开发者ID:ParadoxCodersTeam,项目名称:Botanic-Energistics,代码行数:12,代码来源:TileAEDaisy.java
示例4: pushPattern
import appeng.api.networking.crafting.ICraftingPatternDetails; //导入依赖的package包/类
@Override
public boolean pushPattern( final ICraftingPatternDetails patternDetails, final InventoryCrafting table )
{
if( ( !this.isCrafting ) && ( patternDetails instanceof ArcaneCraftingPattern ) )
{
// Mark that crafting has begun
this.isCrafting = true;
// Reset the crafting tick counter
this.craftTickCounter = 0;
// Set the pattern that is being crafted
this.currentPattern = (ArcaneCraftingPattern)patternDetails;
// Set the target item
this.internalInventory.setInventorySlotContents( TARGET_SLOT_INDEX, this.currentPattern.getResult().getItemStack() );
// AE effects
try
{
NetworkRegistry.TargetPoint where = new NetworkRegistry.TargetPoint( this.worldObj.provider.dimensionId, this.xCoord, this.yCoord,
this.zCoord, 32.0D );
appeng.core.sync.network.NetworkHandler.instance.sendToAllAround( new PacketAssemblerAnimation( this.xCoord, this.yCoord,
this.zCoord, (byte)( 10 + ( 9 * this.upgradeCount ) ), this.currentPattern.getResult() ),
where );
}
catch( IOException e )
{
}
return true;
}
return false;
}
开发者ID:Nividica,项目名称:ThaumicEnergistics,代码行数:36,代码来源:TileArcaneAssembler.java
示例5: getPatternForItem
import appeng.api.networking.crafting.ICraftingPatternDetails; //导入依赖的package包/类
@Override
public ICraftingPatternDetails getPatternForItem(ItemStack itemStack, World world) {
return new RuneAssemblerCraftingPattern(null,itemStack,0);
}
开发者ID:ParadoxCodersTeam,项目名称:Botanic-Energistics,代码行数:5,代码来源:RuneAssemblerCraftingPattern.java
示例6: pushPattern
import appeng.api.networking.crafting.ICraftingPatternDetails; //导入依赖的package包/类
@Override
@Optional.Method(modid = ModIds.AE2)
public boolean pushPattern(ICraftingPatternDetails details, InventoryCrafting inventoryCrafting){
return false;
}
开发者ID:MineMaarten,项目名称:PneumaticCraft,代码行数:6,代码来源:SemiBlockRequester.java
示例7: getPatternForItem
import appeng.api.networking.crafting.ICraftingPatternDetails; //导入依赖的package包/类
/**
* Access Details about a pattern
*
* @param is pattern
* @param w crafting world
* @return details of pattern
*/
ICraftingPatternDetails getPatternForItem(ItemStack is, World w);
开发者ID:amadornes,项目名称:Framez,代码行数:9,代码来源:ICraftingPatternItem.java
示例8: pushPattern
import appeng.api.networking.crafting.ICraftingPatternDetails; //导入依赖的package包/类
/**
* inserts a crafting plan, and the necessary items into the crafting machine.
*
* @param patternDetails details of pattern
* @param table crafting table
* @param ejectionDirection ejection direction
*
* @return if it was accepted, all or nothing.
*/
boolean pushPattern(ICraftingPatternDetails patternDetails, InventoryCrafting table, ForgeDirection ejectionDirection);
开发者ID:amadornes,项目名称:Framez,代码行数:11,代码来源:ICraftingMachine.java
示例9: getPatternForItem
import appeng.api.networking.crafting.ICraftingPatternDetails; //导入依赖的package包/类
/**
* Access Details about a patern
*
* @param is
* @param w
* @return
*/
ICraftingPatternDetails getPatternForItem(ItemStack is, World w);
开发者ID:AgileMods,项目名称:MateriaMuto,代码行数:9,代码来源:ICraftingPatternItem.java
示例10: pushPattern
import appeng.api.networking.crafting.ICraftingPatternDetails; //导入依赖的package包/类
/**
* inserts a crafting plan, and the necessary items into the crafting machine.
*
* @param patternDetails
* @param table
* @param ejectionDirection
*
* @return if it was accepted, all or nothing.
*/
boolean pushPattern(ICraftingPatternDetails patternDetails, InventoryCrafting table, ForgeDirection ejectionDirection);
开发者ID:AgileMods,项目名称:MateriaMuto,代码行数:11,代码来源:ICraftingMachine.java
示例11: getPatternForItem
import appeng.api.networking.crafting.ICraftingPatternDetails; //导入依赖的package包/类
/**
* Access Details about a pattern
*
* @param is pattern
* @param w crafting world
*
* @return details of pattern
*/
ICraftingPatternDetails getPatternForItem( ItemStack is, World w );
开发者ID:MineMaarten,项目名称:PneumaticCraft,代码行数:10,代码来源:ICraftingPatternItem.java
示例12: pushPattern
import appeng.api.networking.crafting.ICraftingPatternDetails; //导入依赖的package包/类
/**
* inserts a crafting plan, and the necessary items into the crafting machine.
*
* @param patternDetails details of pattern
* @param table crafting table
* @param ejectionDirection ejection direction
*
* @return if it was accepted, all or nothing.
*/
boolean pushPattern( ICraftingPatternDetails patternDetails, InventoryCrafting table, ForgeDirection ejectionDirection );
开发者ID:MineMaarten,项目名称:PneumaticCraft,代码行数:11,代码来源:ICraftingMachine.java
注:本文中的appeng.api.networking.crafting.ICraftingPatternDetails类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论