本文整理汇总了Java中buildcraft.api.blueprints.BlueprintManager.blockBptProps方法的典型用法代码示例。如果您正苦于以下问题:Java BlueprintManager.blockBptProps方法的具体用法?Java BlueprintManager.blockBptProps怎么用?Java BlueprintManager.blockBptProps使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类buildcraft.api.blueprints.BlueprintManager
的用法示例。
在下文中一共展示了BlueprintManager.blockBptProps方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: addRequirements
import buildcraft.api.blueprints.BlueprintManager; //导入方法依赖的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.BlueprintManager; //导入方法依赖的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.BlueprintManager; //导入方法依赖的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);
}
}