本文整理匯總了Java中buildcraft.api.blueprints.BptSlotInfo.clone方法的典型用法代碼示例。如果您正苦於以下問題:Java BptSlotInfo.clone方法的具體用法?Java BptSlotInfo.clone怎麽用?Java BptSlotInfo.clone使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類buildcraft.api.blueprints.BptSlotInfo
的用法示例。
在下文中一共展示了BptSlotInfo.clone方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: addRequirements
import buildcraft.api.blueprints.BptSlotInfo; //導入方法依賴的package包/類
@Override
public void addRequirements(BptSlotInfo slot, IBptContext context, LinkedList<ItemStack> requirements) {
BptSlotInfo newSlot = slot.clone();
slot.blockId = delegateTo;
if (BlueprintManager.blockBptProps[delegateTo] != null) {
BlueprintManager.blockBptProps[delegateTo].addRequirements(newSlot, context, requirements);
} else {
super.addRequirements(newSlot, context, requirements);
}
}
示例2: isValid
import buildcraft.api.blueprints.BptSlotInfo; //導入方法依賴的package包/類
@Override
public boolean isValid(BptSlotInfo slot, IBptContext context) {
BptSlotInfo newSlot = slot.clone();
slot.blockId = delegateTo;
if (BlueprintManager.blockBptProps[delegateTo] != null)
return BlueprintManager.blockBptProps[delegateTo].isValid(newSlot, context);
else
return super.isValid(newSlot, context);
}
示例3: rotateLeft
import buildcraft.api.blueprints.BptSlotInfo; //導入方法依賴的package包/類
@Override
public void rotateLeft(BptSlotInfo slot, IBptContext context) {
BptSlotInfo newSlot = slot.clone();
slot.blockId = delegateTo;
if (BlueprintManager.blockBptProps[delegateTo] != null) {
BlueprintManager.blockBptProps[delegateTo].rotateLeft(newSlot, context);
} else {
super.rotateLeft(newSlot, context);
}
}