All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.jnngl.packet.MapPacketSender Maven / Gradle / Ivy

The newest version!
package com.jnngl.packet;

import com.jnngl.totalcomputers.MapColor;
import org.bukkit.entity.Player;

import java.awt.image.BufferedImage;

public interface MapPacketSender {

    public void sendMap(Player player, int mapId, BufferedImage data);
    public void sendPacket(Player player, Object packet) throws ReflectiveOperationException;
    public Object createPacket(int mapId, BufferedImage data) throws ReflectiveOperationException;
    default public void modifyPacket(Object packet, BufferedImage tile) throws ReflectiveOperationException {
        modifyPacket(packet, MapColor.toByteArray(tile));
    };
    public void modifyPacket(Object packet, byte[] raw) throws ReflectiveOperationException;

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy