@Override
public ItemStack[] getUsedTradingRecipe(MerchantInventory merchantInventory) {
try {
Object inventoryMerchant = craftInventoryGetInventory.invoke(merchantInventory);
Object merchantRecipe = getRecipeMethod.invoke(inventoryMerchant);
ItemStack[] recipe = new ItemStack[3];
recipe[0] = asBukkitCopy(getBuyItem1Method.invoke(merchantRecipe));
recipe[1] = asBukkitCopy(getBuyItem2Method.invoke(merchantRecipe));
recipe[2] = asBukkitCopy(getBuyItem3Method.invoke(merchantRecipe));
return recipe;
} catch (Exception e) {
return null;
}
}
FailedHandler.java 文件源码
java
阅读 21
收藏 0
点赞 0
评论 0
项目:Shopkeepers
作者:
评论列表
文章目录