package top.r3944realms.lib39.core.sync;

import net.neoforged.neoforge.network.PacketDistributor;
import top.r3944realms.lib39.core.network.NetworkHandler;
import top.r3944realms.lib39.core.network.toClient.SyncNBTCapDataEntityS2CPayload;

/**
 * The interface NeoForge update.
 */
public interface INeoForgeUpdate extends IUpdate {
    default void update() {
        PacketDistributor.sendToAllPlayers(new SyncNBTCapDataEntityS2CPayload(getSyncData().entityId(), getSyncData().id, getSyncData().serializeNBT()));
    }
}
