Search in sources :

Example 1 with SCPacketWorktableFluidUpdate

use of com.codetaylor.mc.artisanworktables.modules.worktables.network.SCPacketWorktableFluidUpdate in project artisan-worktables by codetaylor.

the class TileEntityBase method onFluidTankContentsChanged.

protected void onFluidTankContentsChanged() {
    this.requiresRecipeUpdate = true;
    this.markDirty();
    if (!this.world.isRemote) {
        ModuleWorktables.PACKET_SERVICE.sendToAllAround(new SCPacketWorktableFluidUpdate(this.getPos(), this.tank), this);
    }
}
Also used : SCPacketWorktableFluidUpdate(com.codetaylor.mc.artisanworktables.modules.worktables.network.SCPacketWorktableFluidUpdate)

Aggregations

SCPacketWorktableFluidUpdate (com.codetaylor.mc.artisanworktables.modules.worktables.network.SCPacketWorktableFluidUpdate)1