mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-22 04:52:25 +00:00
27 lines
583 B
Java
27 lines
583 B
Java
package mekanism.common.base;
|
|
|
|
import io.netty.buffer.ByteBuf;
|
|
|
|
import java.util.ArrayList;
|
|
|
|
/**
|
|
* Internal interface used for blocks that send data between clients and the server
|
|
* @author AidanBrady
|
|
*
|
|
*/
|
|
public interface ITileNetwork
|
|
{
|
|
/**
|
|
* Receive and manage a packet's data.
|
|
* @param dataStream
|
|
*/
|
|
public void handlePacketData(ByteBuf dataStream) throws Exception;
|
|
|
|
/**
|
|
* Gets an ArrayList of data this tile entity keeps synchronized with the client.
|
|
* @param data - list of data
|
|
* @return ArrayList
|
|
*/
|
|
public ArrayList getNetworkedData(ArrayList data);
|
|
}
|