Java 类net.minecraft.network.play.client.C0FPacketConfirmTransaction 实例源码

项目:DecompiledMinecraft    文件:NetHandlerPlayClient.java   
/**
 * Verifies that the server and client are synchronized with respect to the inventory/container opened by the player
 * and confirms if it is the case.
 */
public void handleConfirmTransaction(S32PacketConfirmTransaction packetIn)
{
    PacketThreadUtil.checkThreadAndEnqueue(packetIn, this, this.gameController);
    Container container = null;
    EntityPlayer entityplayer = this.gameController.thePlayer;

    if (packetIn.getWindowId() == 0)
    {
        container = entityplayer.inventoryContainer;
    }
    else if (packetIn.getWindowId() == entityplayer.openContainer.windowId)
    {
        container = entityplayer.openContainer;
    }

    if (container != null && !packetIn.func_148888_e())
    {
        this.addToSendQueue(new C0FPacketConfirmTransaction(packetIn.getWindowId(), packetIn.getActionNumber(), true));
    }
}
项目:BaseClient    文件:NetHandlerPlayClient.java   
/**
 * Verifies that the server and client are synchronized with respect to the inventory/container opened by the player
 * and confirms if it is the case.
 */
public void handleConfirmTransaction(S32PacketConfirmTransaction packetIn)
{
    PacketThreadUtil.checkThreadAndEnqueue(packetIn, this, this.gameController);
    Container container = null;
    EntityPlayer entityplayer = this.gameController.thePlayer;

    if (packetIn.getWindowId() == 0)
    {
        container = entityplayer.inventoryContainer;
    }
    else if (packetIn.getWindowId() == entityplayer.openContainer.windowId)
    {
        container = entityplayer.openContainer;
    }

    if (container != null && !packetIn.func_148888_e())
    {
        this.addToSendQueue(new C0FPacketConfirmTransaction(packetIn.getWindowId(), packetIn.getActionNumber(), true));
    }
}
项目:BaseClient    文件:NetHandlerPlayClient.java   
/**
 * Verifies that the server and client are synchronized with respect to the
 * inventory/container opened by the player and confirms if it is the case.
 */
public void handleConfirmTransaction(S32PacketConfirmTransaction packetIn) {
    PacketThreadUtil.checkThreadAndEnqueue(packetIn, this, this.gameController);
    Container container = null;
    EntityPlayer entityplayer = this.gameController.thePlayer;

    if (packetIn.getWindowId() == 0) {
        container = entityplayer.inventoryContainer;
    } else if (packetIn.getWindowId() == entityplayer.openContainer.windowId) {
        container = entityplayer.openContainer;
    }

    if (container != null && !packetIn.func_148888_e()) {
        this.addToSendQueue(
                new C0FPacketConfirmTransaction(packetIn.getWindowId(), packetIn.getActionNumber(), true));
    }
}
项目:Resilience-Client-Source    文件:NetHandlerPlayClient.java   
/**
 * Verifies that the server and client are synchronized with respect to the inventory/container opened by the player
 * and confirms if it is the case.
 */
public void handleConfirmTransaction(S32PacketConfirmTransaction p_147239_1_)
{
    Container var2 = null;
    EntityClientPlayerMP var3 = this.gameController.thePlayer;

    if (p_147239_1_.func_148889_c() == 0)
    {
        var2 = var3.inventoryContainer;
    }
    else if (p_147239_1_.func_148889_c() == var3.openContainer.windowId)
    {
        var2 = var3.openContainer;
    }

    if (var2 != null && !p_147239_1_.func_148888_e())
    {
        this.addToSendQueue(new C0FPacketConfirmTransaction(p_147239_1_.func_148889_c(), p_147239_1_.func_148890_d(), true));
    }
}
项目:Cauldron    文件:NetHandlerPlayClient.java   
public void handleConfirmTransaction(S32PacketConfirmTransaction p_147239_1_)
{
    Container container = null;
    EntityClientPlayerMP entityclientplayermp = this.gameController.thePlayer;

    if (p_147239_1_.func_148889_c() == 0)
    {
        container = entityclientplayermp.inventoryContainer;
    }
    else if (p_147239_1_.func_148889_c() == entityclientplayermp.openContainer.windowId)
    {
        container = entityclientplayermp.openContainer;
    }

    if (container != null && !p_147239_1_.func_148888_e())
    {
        this.addToSendQueue(new C0FPacketConfirmTransaction(p_147239_1_.func_148889_c(), p_147239_1_.func_148890_d(), true));
    }
}
项目:Cauldron    文件:NetHandlerPlayClient.java   
public void handleConfirmTransaction(S32PacketConfirmTransaction p_147239_1_)
{
    Container container = null;
    EntityClientPlayerMP entityclientplayermp = this.gameController.thePlayer;

    if (p_147239_1_.func_148889_c() == 0)
    {
        container = entityclientplayermp.inventoryContainer;
    }
    else if (p_147239_1_.func_148889_c() == entityclientplayermp.openContainer.windowId)
    {
        container = entityclientplayermp.openContainer;
    }

    if (container != null && !p_147239_1_.func_148888_e())
    {
        this.addToSendQueue(new C0FPacketConfirmTransaction(p_147239_1_.func_148889_c(), p_147239_1_.func_148890_d(), true));
    }
}
项目:DecompiledMinecraft    文件:NetHandlerPlayServer.java   
/**
 * Received in response to the server requesting to confirm that the client-side open container matches the servers'
 * after a mismatched container-slot manipulation. It will unlock the player's ability to manipulate the container
 * contents
 */
public void processConfirmTransaction(C0FPacketConfirmTransaction packetIn)
{
    PacketThreadUtil.checkThreadAndEnqueue(packetIn, this, this.playerEntity.getServerForPlayer());
    Short oshort = (Short)this.field_147372_n.lookup(this.playerEntity.openContainer.windowId);

    if (oshort != null && packetIn.getUid() == oshort.shortValue() && this.playerEntity.openContainer.windowId == packetIn.getWindowId() && !this.playerEntity.openContainer.getCanCraft(this.playerEntity) && !this.playerEntity.isSpectator())
    {
        this.playerEntity.openContainer.setCanCraft(this.playerEntity, true);
    }
}
项目:DecompiledMinecraft    文件:NetHandlerPlayServer.java   
/**
 * Received in response to the server requesting to confirm that the client-side open container matches the servers'
 * after a mismatched container-slot manipulation. It will unlock the player's ability to manipulate the container
 * contents
 */
public void processConfirmTransaction(C0FPacketConfirmTransaction packetIn)
{
    PacketThreadUtil.checkThreadAndEnqueue(packetIn, this, this.playerEntity.getServerForPlayer());
    Short oshort = (Short)this.field_147372_n.lookup(this.playerEntity.openContainer.windowId);

    if (oshort != null && packetIn.getUid() == oshort.shortValue() && this.playerEntity.openContainer.windowId == packetIn.getWindowId() && !this.playerEntity.openContainer.getCanCraft(this.playerEntity) && !this.playerEntity.isSpectator())
    {
        this.playerEntity.openContainer.setCanCraft(this.playerEntity, true);
    }
}
项目:BaseClient    文件:NetHandlerPlayServer.java   
/**
 * Received in response to the server requesting to confirm that the client-side open container matches the servers'
 * after a mismatched container-slot manipulation. It will unlock the player's ability to manipulate the container
 * contents
 */
public void processConfirmTransaction(C0FPacketConfirmTransaction packetIn)
{
    PacketThreadUtil.checkThreadAndEnqueue(packetIn, this, this.playerEntity.getServerForPlayer());
    Short oshort = (Short)this.field_147372_n.lookup(this.playerEntity.openContainer.windowId);

    if (oshort != null && packetIn.getUid() == oshort.shortValue() && this.playerEntity.openContainer.windowId == packetIn.getWindowId() && !this.playerEntity.openContainer.getCanCraft(this.playerEntity) && !this.playerEntity.isSpectator())
    {
        this.playerEntity.openContainer.setCanCraft(this.playerEntity, true);
    }
}
项目:BaseClient    文件:NetHandlerPlayServer.java   
/**
 * Received in response to the server requesting to confirm that the client-side open container matches the servers'
 * after a mismatched container-slot manipulation. It will unlock the player's ability to manipulate the container
 * contents
 */
public void processConfirmTransaction(C0FPacketConfirmTransaction packetIn)
{
    PacketThreadUtil.checkThreadAndEnqueue(packetIn, this, this.playerEntity.getServerForPlayer());
    Short oshort = (Short)this.field_147372_n.lookup(this.playerEntity.openContainer.windowId);

    if (oshort != null && packetIn.getUid() == oshort.shortValue() && this.playerEntity.openContainer.windowId == packetIn.getWindowId() && !this.playerEntity.openContainer.getCanCraft(this.playerEntity) && !this.playerEntity.isSpectator())
    {
        this.playerEntity.openContainer.setCanCraft(this.playerEntity, true);
    }
}
项目:Resilience-Client-Source    文件:NetHandlerPlayServer.java   
/**
 * Received in response to the server requesting to confirm that the client-side open container matches the servers'
 * after a mismatched container-slot manipulation. It will unlock the player's ability to manipulate the container
 * contents
 */
public void processConfirmTransaction(C0FPacketConfirmTransaction p_147339_1_)
{
    Short var2 = (Short)this.field_147372_n.lookup(this.playerEntity.openContainer.windowId);

    if (var2 != null && p_147339_1_.func_149533_d() == var2.shortValue() && this.playerEntity.openContainer.windowId == p_147339_1_.func_149532_c() && !this.playerEntity.openContainer.isPlayerNotUsingContainer(this.playerEntity))
    {
        this.playerEntity.openContainer.setPlayerIsPresent(this.playerEntity, true);
    }
}
项目:Cauldron    文件:NetHandlerPlayServer.java   
public void processConfirmTransaction(C0FPacketConfirmTransaction p_147339_1_)
{
    if (this.playerEntity.isDead)
    {
        return;    // CraftBukkit
    }

    Short oshort = (Short) this.field_147372_n.lookup(this.playerEntity.openContainer.windowId);

    if (oshort != null && p_147339_1_.func_149533_d() == oshort.shortValue() && this.playerEntity.openContainer.windowId == p_147339_1_.func_149532_c() && !this.playerEntity.openContainer.isPlayerNotUsingContainer(this.playerEntity))
    {
        this.playerEntity.openContainer.setPlayerIsPresent(this.playerEntity, true);
    }
}
项目:Cauldron    文件:NetHandlerPlayServer.java   
public void processConfirmTransaction(C0FPacketConfirmTransaction p_147339_1_)
{
    Short oshort = (Short)this.field_147372_n.lookup(this.playerEntity.openContainer.windowId);

    if (oshort != null && p_147339_1_.func_149533_d() == oshort.shortValue() && this.playerEntity.openContainer.windowId == p_147339_1_.func_149532_c() && !this.playerEntity.openContainer.isPlayerNotUsingContainer(this.playerEntity))
    {
        this.playerEntity.openContainer.setPlayerIsPresent(this.playerEntity, true);
    }
}
项目:Gadomancy    文件:FakeNetServerHandler.java   
@Override
public void processConfirmTransaction(C0FPacketConfirmTransaction p_147339_1_) {
}
项目:DecompiledMinecraft    文件:INetHandlerPlayServer.java   
/**
 * Received in response to the server requesting to confirm that the client-side open container matches the servers'
 * after a mismatched container-slot manipulation. It will unlock the player's ability to manipulate the container
 * contents
 */
void processConfirmTransaction(C0FPacketConfirmTransaction packetIn);
项目:DecompiledMinecraft    文件:INetHandlerPlayServer.java   
/**
 * Received in response to the server requesting to confirm that the client-side open container matches the servers'
 * after a mismatched container-slot manipulation. It will unlock the player's ability to manipulate the container
 * contents
 */
void processConfirmTransaction(C0FPacketConfirmTransaction packetIn);
项目:BaseClient    文件:INetHandlerPlayServer.java   
/**
 * Received in response to the server requesting to confirm that the client-side open container matches the servers'
 * after a mismatched container-slot manipulation. It will unlock the player's ability to manipulate the container
 * contents
 */
void processConfirmTransaction(C0FPacketConfirmTransaction packetIn);
项目:BaseClient    文件:INetHandlerPlayServer.java   
/**
 * Received in response to the server requesting to confirm that the client-side open container matches the servers'
 * after a mismatched container-slot manipulation. It will unlock the player's ability to manipulate the container
 * contents
 */
void processConfirmTransaction(C0FPacketConfirmTransaction packetIn);
项目:Resilience-Client-Source    文件:INetHandlerPlayServer.java   
/**
 * Received in response to the server requesting to confirm that the client-side open container matches the servers'
 * after a mismatched container-slot manipulation. It will unlock the player's ability to manipulate the container
 * contents
 */
void processConfirmTransaction(C0FPacketConfirmTransaction var1);
项目:Cauldron    文件:INetHandlerPlayServer.java   
void processConfirmTransaction(C0FPacketConfirmTransaction p_147339_1_);
项目:Cauldron    文件:INetHandlerPlayServer.java   
void processConfirmTransaction(C0FPacketConfirmTransaction p_147339_1_);