本文整理汇总了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)));
}
}
示例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());
}
}
示例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());
}
}
示例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());
}
}
示例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());
}
}
示例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_));
}
示例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));
}
示例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);
示例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));
}
示例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);
示例11: handleWindowProperty
import net.minecraft.network.play.server.S31PacketWindowProperty; //导入依赖的package包/类
void handleWindowProperty(S31PacketWindowProperty p_147245_1_);