本文整理匯總了Java中cpw.mods.fml.common.gameevent.PlayerEvent.ItemSmeltedEvent方法的典型用法代碼示例。如果您正苦於以下問題:Java PlayerEvent.ItemSmeltedEvent方法的具體用法?Java PlayerEvent.ItemSmeltedEvent怎麽用?Java PlayerEvent.ItemSmeltedEvent使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類cpw.mods.fml.common.gameevent.PlayerEvent
的用法示例。
在下文中一共展示了PlayerEvent.ItemSmeltedEvent方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: onSmelting
import cpw.mods.fml.common.gameevent.PlayerEvent; //導入方法依賴的package包/類
@SubscribeEvent
public void onSmelting(PlayerEvent.ItemSmeltedEvent event)
{
// TODO: Implement ItemCraftedHandler (Achievement on Craft ??)
//if (event.smelting.getItem().equals(ModItems.testItem))
//if (event.smelting.getItem().equals(Item.getItemFromBlock(ModBlocks.testBlock))
//event.player.addStat(AchievementHandler.DEBUG, 1);
}
示例2: onItemSmelted
import cpw.mods.fml.common.gameevent.PlayerEvent; //導入方法依賴的package包/類
@SubscribeEvent
public void onItemSmelted(PlayerEvent.ItemSmeltedEvent e)
{
if (e.smelting.getItem() == Items.golden_apple && e.smelting.getItemDamage() == 1)
{
RegisterAchievements.achievementGet(e.player, "notchApple");
}
}
示例3: playerEvent_ItemSmelting
import cpw.mods.fml.common.gameevent.PlayerEvent; //導入方法依賴的package包/類
@SubscribeEvent(priority = EventPriority.LOWEST)
public void playerEvent_ItemSmelting(PlayerEvent.ItemSmeltedEvent event)
{
ItemsLogEvent log = new ItemsLogEvent();
log.setType(TYPE_ITEM_SMELTING);
log.setPlayerPosAndUuid(event.player);
log.setData(event.smelting);
LoggingQueue.addToQueue(log);
}
示例4: smelteddEvent
import cpw.mods.fml.common.gameevent.PlayerEvent; //導入方法依賴的package包/類
@SubscribeEvent
public void smelteddEvent(PlayerEvent.ItemSmeltedEvent event) {
if(event.smelting.isItemEqual(new ItemStack(Items.gold_ingot))) {
}
}
示例5: whenISmeltAnItemOrBlock
import cpw.mods.fml.common.gameevent.PlayerEvent; //導入方法依賴的package包/類
@SubscribeEvent
public void whenISmeltAnItemOrBlock(PlayerEvent.ItemSmeltedEvent e){
if((e.smelting.getItem()).equals(TectoCraft.tungsten_ingot)){
e.player.addStat(TectoCraft.achievementHighTemperatures, 1);
}
}