com.jnngl.packet.MapPacketSender Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of totalcomputers Show documentation
Show all versions of totalcomputers Show documentation
Computers in vanilla Minecraft | TotalOS SDK
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