src/main/java/dev/rlnt/energymeter/meter/MeterTile.java
public void syncData(int flags) {
        if (level == null || level.isClientSide) return;
        ClientSyncPacket packet = new ClientSyncPacket(
            worldPosition,
            flags,
            sideConfig,
            transferRate,
            status,
            numberMode,
            mode
        );
        PacketHandler.CHANNEL.send(
            PacketDistributor.TRACKING_CHUNK.with(() -> level.getChunkAt(worldPosition)),
            packet
        );
    }
/**
     * Syncs data to clients that track the current {@link Chunk} with a {@link ClientSyncPacket}.
     * <p>
     * Different flags from the {@link SyncFlags} can be passed to define what should be included
     * in the packet to avoid unnecessary data being sent.
     *
     * @param flags the flags of the data to sync
     */
Syncs data to clients that track the current  Chunk with a  ClientSyncPacket.

Different flags from the  SyncFlags can be passed to define what should be included
in the packet to avoid unnecessary data being sent.

@param flags the flags of the data to sync
Syncs data to clients that track the current Chunk with a ClientSyncPacket . Different flags from the SyncFlags can be passed to define what should be included in the packet to avoid unnecessary data being sent . @param flags the flags of the data to sync
public void syncData(int flags) {
        if (level == null || level.isClientSide) return;
        ClientSyncPacket packet = new ClientSyncPacket(
            worldPosition,
            flags,
            sideConfig,
            transferRate,
            status,
            numberMode,
            mode
        );
        PacketHandler.CHANNEL.send(
            PacketDistributor.TRACKING_CHUNK.with(() -> level.getChunkAt(worldPosition)),
            packet
        );
    }
public void syncData ( int flags ) { if ( level == null || level . isClientSide ) return ; ClientSyncPacket packet = new ClientSyncPacket ( worldPosition , flags , sideConfig , transferRate , status , numberMode , mode ) ; PacketHandler . CHANNEL . send ( PacketDistributor . TRACKING_CHUNK . with ( ( ) -> level . getChunkAt ( worldPosition ) ) , packet ) ; }
Syncs data to clients that track the current {@link Chunk} with a {@link ClientSyncPacket}.
Syncs data to clients that track the current { @link Chunk } with a { @link ClientSyncPacket } .