Search in sources :

Example 1 with PacketGuiUpdate

use of forestry.core.network.packets.PacketGuiUpdate in project ForestryMC by ForestryMC.

the class ContainerPlanter method detectAndSendChanges.

@Override
public void detectAndSendChanges() {
    super.detectAndSendChanges();
    PacketGuiUpdate packet = new PacketGuiUpdate(tile);
    sendPacketToListeners(packet);
}
Also used : PacketGuiUpdate(forestry.core.network.packets.PacketGuiUpdate)

Example 2 with PacketGuiUpdate

use of forestry.core.network.packets.PacketGuiUpdate in project ForestryMC by ForestryMC.

the class ContainerAlveary method detectAndSendChanges.

@Override
public void detectAndSendChanges() {
    super.detectAndSendChanges();
    int beeProgress = tile.getBeekeepingLogic().getBeeProgressPercent();
    if (this.beeProgress != beeProgress) {
        this.beeProgress = beeProgress;
        IForestryPacketClient packet = new PacketGuiUpdate(tile);
        sendPacketToListeners(packet);
    }
}
Also used : PacketGuiUpdate(forestry.core.network.packets.PacketGuiUpdate) IForestryPacketClient(forestry.core.network.IForestryPacketClient)

Example 3 with PacketGuiUpdate

use of forestry.core.network.packets.PacketGuiUpdate in project ForestryMC by ForestryMC.

the class ContainerEnginePeat method detectAndSendChanges.

@Override
public void detectAndSendChanges() {
    super.detectAndSendChanges();
    PacketGuiUpdate packet = new PacketGuiUpdate(tile);
    sendPacketToListeners(packet);
}
Also used : PacketGuiUpdate(forestry.core.network.packets.PacketGuiUpdate)

Example 4 with PacketGuiUpdate

use of forestry.core.network.packets.PacketGuiUpdate in project ForestryMC by ForestryMC.

the class ContainerFarm method detectAndSendChanges.

@Override
public void detectAndSendChanges() {
    super.detectAndSendChanges();
    PacketGuiUpdate packet = new PacketGuiUpdate(tile);
    sendPacketToListeners(packet);
}
Also used : PacketGuiUpdate(forestry.core.network.packets.PacketGuiUpdate)

Example 5 with PacketGuiUpdate

use of forestry.core.network.packets.PacketGuiUpdate in project ForestryMC by ForestryMC.

the class ContainerBeeHousing method detectAndSendChanges.

@Override
public void detectAndSendChanges() {
    super.detectAndSendChanges();
    int beeProgress = tile.getBeekeepingLogic().getBeeProgressPercent();
    if (this.beeProgress != beeProgress) {
        this.beeProgress = beeProgress;
        IForestryPacketClient packet = new PacketGuiUpdate(tile);
        sendPacketToListeners(packet);
    }
}
Also used : PacketGuiUpdate(forestry.core.network.packets.PacketGuiUpdate) IForestryPacketClient(forestry.core.network.IForestryPacketClient)

Aggregations

PacketGuiUpdate (forestry.core.network.packets.PacketGuiUpdate)12 IForestryPacketClient (forestry.core.network.IForestryPacketClient)2 IErrorLogicSource (forestry.api.core.IErrorLogicSource)1 IErrorState (forestry.api.core.IErrorState)1 PacketErrorUpdate (forestry.core.network.packets.PacketErrorUpdate)1 PacketGuiEnergy (forestry.core.network.packets.PacketGuiEnergy)1 IPowerHandler (forestry.core.tiles.IPowerHandler)1 TilePowered (forestry.core.tiles.TilePowered)1 EnergyManager (forestry.energy.EnergyManager)1 ItemStack (net.minecraft.item.ItemStack)1