當前位置: 首頁>>代碼示例>>Java>>正文


Java Packet105UpdateProgressbar類代碼示例

本文整理匯總了Java中net.minecraft.network.packet.Packet105UpdateProgressbar的典型用法代碼示例。如果您正苦於以下問題:Java Packet105UpdateProgressbar類的具體用法?Java Packet105UpdateProgressbar怎麽用?Java Packet105UpdateProgressbar使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


Packet105UpdateProgressbar類屬於net.minecraft.network.packet包,在下文中一共展示了Packet105UpdateProgressbar類的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: func_72505_a

import net.minecraft.network.packet.Packet105UpdateProgressbar; //導入依賴的package包/類
public void func_72505_a(Packet105UpdateProgressbar p_72505_1_) {
   EntityClientPlayerMP var2 = this.field_72563_h.field_71439_g;
   this.func_72509_a(p_72505_1_);
   if(var2.field_71070_bA != null && var2.field_71070_bA.field_75152_c == p_72505_1_.field_73634_a) {
      var2.field_71070_bA.func_75137_b(p_72505_1_.field_73632_b, p_72505_1_.field_73633_c);
   }

}
 
開發者ID:HATB0T,項目名稱:RuneCraftery,代碼行數:9,代碼來源:NetClientHandler.java

示例2: handleUpdateProgressbar

import net.minecraft.network.packet.Packet105UpdateProgressbar; //導入依賴的package包/類
public void handleUpdateProgressbar(Packet105UpdateProgressbar par1Packet105UpdateProgressbar)
{
    EntityClientPlayerMP entityclientplayermp = this.mc.thePlayer;
    this.unexpectedPacket(par1Packet105UpdateProgressbar);

    if (entityclientplayermp.openContainer != null && entityclientplayermp.openContainer.windowId == par1Packet105UpdateProgressbar.windowId)
    {
        entityclientplayermp.openContainer.updateProgressBar(par1Packet105UpdateProgressbar.progressBar, par1Packet105UpdateProgressbar.progressBarValue);
    }
}
 
開發者ID:HATB0T,項目名稱:RuneCraftery,代碼行數:11,代碼來源:NetClientHandler.java

示例3: handleUpdateProgressbar

import net.minecraft.network.packet.Packet105UpdateProgressbar; //導入依賴的package包/類
@Override
public void handleUpdateProgressbar(Packet105UpdateProgressbar par1Packet105UpdateProgressbar)
{
	nch.handleUpdateProgressbar(par1Packet105UpdateProgressbar);		
}
 
開發者ID:xurei,項目名稱:forge_world_downloader,代碼行數:6,代碼來源:WDLNetClientHandler.java

示例4: func_71112_a

import net.minecraft.network.packet.Packet105UpdateProgressbar; //導入依賴的package包/類
public void func_71112_a(Container p_71112_1_, int p_71112_2_, int p_71112_3_) {
   this.field_71135_a.func_72567_b(new Packet105UpdateProgressbar(p_71112_1_.field_75152_c, p_71112_2_, p_71112_3_));
}
 
開發者ID:HATB0T,項目名稱:RuneCraftery,代碼行數:4,代碼來源:EntityPlayerMP.java

示例5: func_72505_a

import net.minecraft.network.packet.Packet105UpdateProgressbar; //導入依賴的package包/類
public void func_72505_a(Packet105UpdateProgressbar p_72505_1_) {
   this.func_72509_a(p_72505_1_);
}
 
開發者ID:HATB0T,項目名稱:RuneCraftery,代碼行數:4,代碼來源:NetHandler.java

示例6: sendProgressBarUpdate

import net.minecraft.network.packet.Packet105UpdateProgressbar; //導入依賴的package包/類
/**
 * Sends two ints to the client-side Container. Used for furnace burning time, smelting progress, brewing progress,
 * and enchanting level. Normally the first int identifies which variable to update, and the second contains the new
 * value. Both are truncated to shorts in non-local SMP.
 */
public void sendProgressBarUpdate(Container par1Container, int par2, int par3)
{
    this.playerNetServerHandler.sendPacketToPlayer(new Packet105UpdateProgressbar(par1Container.windowId, par2, par3));
}
 
開發者ID:HATB0T,項目名稱:RuneCraftery,代碼行數:10,代碼來源:EntityPlayerMP.java


注:本文中的net.minecraft.network.packet.Packet105UpdateProgressbar類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。