Search in sources :

Example 1 with PacketGuiUpdateEntity

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

the class ContainerMinecartBeehouse method detectAndSendChanges.

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

Aggregations

IForestryPacketClient (forestry.core.network.IForestryPacketClient)1 PacketGuiUpdateEntity (forestry.core.network.packets.PacketGuiUpdateEntity)1