use of forestry.core.network.packets.PacketGuiUpdate in project ForestryMC by ForestryMC.
the class ContainerEngineBiogas method detectAndSendChanges.
@Override
public void detectAndSendChanges() {
super.detectAndSendChanges();
PacketGuiUpdate packet = new PacketGuiUpdate(tile);
sendPacketToListeners(packet);
}
use of forestry.core.network.packets.PacketGuiUpdate in project ForestryMC by ForestryMC.
the class ContainerEngineElectric method detectAndSendChanges.
@Override
public void detectAndSendChanges() {
super.detectAndSendChanges();
PacketGuiUpdate packet = new PacketGuiUpdate(tile);
sendPacketToListeners(packet);
}
use of forestry.core.network.packets.PacketGuiUpdate in project ForestryMC by ForestryMC.
the class ContainerGenerator method detectAndSendChanges.
@Override
public void detectAndSendChanges() {
super.detectAndSendChanges();
PacketGuiUpdate packet = new PacketGuiUpdate(tile);
sendPacketToListeners(packet);
}
use of forestry.core.network.packets.PacketGuiUpdate in project ForestryMC by ForestryMC.
the class ContainerEscritoire method detectAndSendChanges.
@Override
public void detectAndSendChanges() {
super.detectAndSendChanges();
long gameLastUpdate = tile.getGame().getLastUpdate();
if (lastUpdate != gameLastUpdate) {
lastUpdate = gameLastUpdate;
sendPacketToListeners(new PacketGuiUpdate(tile));
}
}
use of forestry.core.network.packets.PacketGuiUpdate in project ForestryMC by ForestryMC.
the class ContainerClimatiser method detectAndSendChanges.
@Override
public void detectAndSendChanges() {
super.detectAndSendChanges();
ItemStack socket = tile.getSocket(0);
if (socket.isEmpty() && !this.socket.isEmpty() || !socket.isEmpty() && this.socket.isEmpty()) {
PacketGuiUpdate packet = new PacketGuiUpdate(tile);
sendPacketToListeners(packet);
}
}
Aggregations