本文整理汇总了Java中net.minecraft.network.play.server.S31PacketWindowProperty类的典型用法代码示例。如果您正苦于以下问题:Java S31PacketWindowProperty类的具体用法?Java S31PacketWindowProperty怎么用?Java S31PacketWindowProperty使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
S31PacketWindowProperty类属于net.minecraft.network.play.server包,在下文中一共展示了S31PacketWindowProperty类的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: func_175173_a
import net.minecraft.network.play.server.S31PacketWindowProperty; //导入依赖的package包/类
public void func_175173_a(Container p_175173_1_, IInventory p_175173_2_)
{
for (int i = 0; i < p_175173_2_.getFieldCount(); ++i)
{
this.playerNetServerHandler.sendPacket(new S31PacketWindowProperty(p_175173_1_.windowId, i, p_175173_2_.getField(i)));
}
}
开发者ID:Notoh,项目名称:DecompiledMinecraft,代码行数:8,代码来源:EntityPlayerMP.java
示例2: handleWindowProperty
import net.minecraft.network.play.server.S31PacketWindowProperty; //导入依赖的package包/类
/**
* Sets the progressbar of the opened window to the specified value
*/
public void handleWindowProperty(S31PacketWindowProperty packetIn)
{
PacketThreadUtil.checkThreadAndEnqueue(packetIn, this, this.gameController);
EntityPlayer entityplayer = this.gameController.thePlayer;
if (entityplayer.openContainer != null && entityplayer.openContainer.windowId == packetIn.getWindowId())
{
entityplayer.openContainer.updateProgressBar(packetIn.getVarIndex(), packetIn.getVarValue());
}
}
开发者ID:Notoh,项目名称:DecompiledMinecraft,代码行数:14,代码来源:NetHandlerPlayClient.java
示例3: handleWindowProperty
import net.minecraft.network.play.server.S31PacketWindowProperty; //导入依赖的package包/类
/**
* Sets the progressbar of the opened window to the specified value
*/
public void handleWindowProperty(S31PacketWindowProperty packetIn) {
PacketThreadUtil.checkThreadAndEnqueue(packetIn, this, this.gameController);
EntityPlayer entityplayer = this.gameController.thePlayer;
if (entityplayer.openContainer != null && entityplayer.openContainer.windowId == packetIn.getWindowId()) {
entityplayer.openContainer.updateProgressBar(packetIn.getVarIndex(), packetIn.getVarValue());
}
}
开发者ID:SkidJava,项目名称:BaseClient,代码行数:12,代码来源:NetHandlerPlayClient.java
示例4: handleWindowProperty
import net.minecraft.network.play.server.S31PacketWindowProperty; //导入依赖的package包/类
/**
* Sets the progressbar of the opened window to the specified value
*/
public void handleWindowProperty(S31PacketWindowProperty p_147245_1_)
{
EntityClientPlayerMP var2 = this.gameController.thePlayer;
if (var2.openContainer != null && var2.openContainer.windowId == p_147245_1_.func_149182_c())
{
var2.openContainer.updateProgressBar(p_147245_1_.func_149181_d(), p_147245_1_.func_149180_e());
}
}
开发者ID:MinecraftModdedClients,项目名称:Resilience-Client-Source,代码行数:13,代码来源:NetHandlerPlayClient.java
示例5: handleWindowProperty
import net.minecraft.network.play.server.S31PacketWindowProperty; //导入依赖的package包/类
public void handleWindowProperty(S31PacketWindowProperty p_147245_1_)
{
EntityClientPlayerMP entityclientplayermp = this.gameController.thePlayer;
if (entityclientplayermp.openContainer != null && entityclientplayermp.openContainer.windowId == p_147245_1_.func_149182_c())
{
entityclientplayermp.openContainer.updateProgressBar(p_147245_1_.func_149181_d(), p_147245_1_.func_149180_e());
}
}
开发者ID:xtrafrancyz,项目名称:Cauldron,代码行数:10,代码来源:NetHandlerPlayClient.java
示例6: sendProgressBarUpdate
import net.minecraft.network.play.server.S31PacketWindowProperty; //导入依赖的package包/类
public void sendProgressBarUpdate(Container p_71112_1_, int p_71112_2_, int p_71112_3_)
{
this.playerNetServerHandler.sendPacket(new S31PacketWindowProperty(p_71112_1_.windowId, p_71112_2_, p_71112_3_));
}
开发者ID:xtrafrancyz,项目名称:Cauldron,代码行数:5,代码来源:EntityPlayerMP.java
示例7: sendProgressBarUpdate
import net.minecraft.network.play.server.S31PacketWindowProperty; //导入依赖的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 containerIn, int varToUpdate, int newValue)
{
this.playerNetServerHandler.sendPacket(new S31PacketWindowProperty(containerIn.windowId, varToUpdate, newValue));
}
开发者ID:Notoh,项目名称:DecompiledMinecraft,代码行数:10,代码来源:EntityPlayerMP.java
示例8: handleWindowProperty
import net.minecraft.network.play.server.S31PacketWindowProperty; //导入依赖的package包/类
/**
* Sets the progressbar of the opened window to the specified value
*/
void handleWindowProperty(S31PacketWindowProperty packetIn);
开发者ID:Notoh,项目名称:DecompiledMinecraft,代码行数:5,代码来源:INetHandlerPlayClient.java
示例9: sendProgressBarUpdate
import net.minecraft.network.play.server.S31PacketWindowProperty; //导入依赖的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.sendPacket(new S31PacketWindowProperty(par1Container.windowId, par2, par3));
}
开发者ID:MinecraftModdedClients,项目名称:Resilience-Client-Source,代码行数:10,代码来源:EntityPlayerMP.java
示例10: handleWindowProperty
import net.minecraft.network.play.server.S31PacketWindowProperty; //导入依赖的package包/类
/**
* Sets the progressbar of the opened window to the specified value
*/
void handleWindowProperty(S31PacketWindowProperty var1);
开发者ID:MinecraftModdedClients,项目名称:Resilience-Client-Source,代码行数:5,代码来源:INetHandlerPlayClient.java
示例11: handleWindowProperty
import net.minecraft.network.play.server.S31PacketWindowProperty; //导入依赖的package包/类
void handleWindowProperty(S31PacketWindowProperty p_147245_1_);
开发者ID:xtrafrancyz,项目名称:Cauldron,代码行数:2,代码来源:INetHandlerPlayClient.java
注:本文中的net.minecraft.network.play.server.S31PacketWindowProperty类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论