9577c53313
Added a new concept of NetworkId, allowing to transfer ids over the network instead of strings. RPCs are now all handled the same way (except RPC Pipes, to be completed when actually used).
22 lines
564 B
Java
Executable file
22 lines
564 B
Java
Executable file
/**
|
|
* Copyright (c) 2011-2014, SpaceToad and the BuildCraft Team
|
|
* http://www.mod-buildcraft.com
|
|
*
|
|
* BuildCraft is distributed under the terms of the Minecraft Mod Public
|
|
* License 1.0, or MMPL. Please check the contents of the license located in
|
|
* http://www.mod-buildcraft.com/MMPL-1.0.txt
|
|
*/
|
|
package buildcraft.core.network;
|
|
|
|
import net.minecraft.entity.player.EntityPlayer;
|
|
|
|
public abstract class PacketRPC extends BuildCraftPacket {
|
|
|
|
@Override
|
|
public final int getID() {
|
|
return PacketIds.RPC;
|
|
}
|
|
|
|
public abstract void call(EntityPlayer sender);
|
|
}
|