public final class PacketCustom extends java.lang.Object implements MCDataInput, MCDataOutput
| Modifier and Type | Class and Description |
|---|---|
static class |
PacketCustom.ClientInboundHandler |
static class |
PacketCustom.CustomInboundHandler |
static class |
PacketCustom.HandshakeInboundHandler |
static interface |
PacketCustom.IClientPacketHandler |
static interface |
PacketCustom.ICustomPacketHandler |
static interface |
PacketCustom.IHandshakeHandler |
static interface |
PacketCustom.IServerPacketHandler |
static class |
PacketCustom.ServerInboundHandler |
| Modifier and Type | Field and Description |
|---|---|
static <any> |
cclHandler |
| Constructor and Description |
|---|
PacketCustom(ByteBuf payload) |
PacketCustom(java.lang.Object channelKey,
int type) |
| Modifier and Type | Method and Description |
|---|---|
static void |
assignHandler(java.lang.Object channelKey,
PacketCustom.ICustomPacketHandler handler) |
static void |
assignHandshakeHandler(java.lang.Object channelKey,
PacketCustom.IHandshakeHandler handler) |
static java.lang.String |
channelName(java.lang.Object channelKey) |
PacketCustom |
compress() |
ByteBuf |
getByteBuf() |
static FMLEmbeddedChannel |
getOrCreateChannel(java.lang.String channelName,
Side side) |
int |
getType() |
boolean |
incoming() |
boolean |
readBoolean() |
byte |
readByte() |
byte[] |
readByteArray(int length) |
char |
readChar() |
BlockCoord |
readCoord() |
double |
readDouble() |
float |
readFloat() |
FluidStack |
readFluidStack() |
int |
readInt() |
ItemStack |
readItemStack() |
ItemStack |
readItemStack(boolean large) |
long |
readLong() |
NBTTagCompound |
readNBTTagCompound() |
short |
readShort() |
java.lang.String |
readString() |
short |
readUByte() |
int |
readUShort() |
int |
readVarInt() |
int |
readVarShort() |
void |
sendPacketToAllAround(double x,
double y,
double z,
double range,
int dim) |
static void |
sendToAllAround(Packet packet,
double x,
double y,
double z,
double range,
int dim) |
static void |
sendToChunk(Packet packet,
World world,
int chunkX,
int chunkZ) |
void |
sendToChunk(World world,
int chunkX,
int chunkZ) |
void |
sendToClients() |
static void |
sendToClients(Packet packet) |
void |
sendToDimension(int dim) |
static void |
sendToDimension(Packet packet,
int dim) |
void |
sendToOps() |
static void |
sendToOps(Packet packet) |
void |
sendToPlayer(EntityPlayer player) |
static void |
sendToPlayer(Packet packet,
EntityPlayer player) |
void |
sendToServer() |
static void |
sendToServer(Packet packet) |
FMLProxyPacket |
toPacket() |
PacketCustom |
writeBoolean(boolean b) |
PacketCustom |
writeByte(int b) |
PacketCustom |
writeByteArray(byte[] barray) |
PacketCustom |
writeChar(char c) |
PacketCustom |
writeCoord(BlockCoord coord) |
PacketCustom |
writeCoord(int x,
int y,
int z) |
PacketCustom |
writeDouble(double d) |
PacketCustom |
writeFloat(float f) |
PacketCustom |
writeFluidStack(FluidStack fluid) |
PacketCustom |
writeInt(int i) |
PacketCustom |
writeItemStack(ItemStack stack) |
PacketCustom |
writeItemStack(ItemStack stack,
boolean large) |
PacketCustom |
writeLong(long l) |
PacketCustom |
writeNBTTagCompound(NBTTagCompound compound) |
PacketCustom |
writeShort(int s) |
PacketCustom |
writeString(java.lang.String s) |
PacketCustom |
writeVarInt(int i) |
PacketCustom |
writeVarShort(int s) |
public PacketCustom(ByteBuf payload)
public PacketCustom(java.lang.Object channelKey,
int type)
public static java.lang.String channelName(java.lang.Object channelKey)
public static FMLEmbeddedChannel getOrCreateChannel(java.lang.String channelName,
Side side)
public static void assignHandler(java.lang.Object channelKey,
PacketCustom.ICustomPacketHandler handler)
public static void assignHandshakeHandler(java.lang.Object channelKey,
PacketCustom.IHandshakeHandler handler)
public boolean incoming()
public int getType()
public ByteBuf getByteBuf()
public PacketCustom compress()
public PacketCustom writeBoolean(boolean b)
writeBoolean in interface MCDataOutputpublic PacketCustom writeByte(int b)
writeByte in interface MCDataOutputpublic PacketCustom writeShort(int s)
writeShort in interface MCDataOutputpublic PacketCustom writeInt(int i)
writeInt in interface MCDataOutputpublic PacketCustom writeFloat(float f)
writeFloat in interface MCDataOutputpublic PacketCustom writeDouble(double d)
writeDouble in interface MCDataOutputpublic PacketCustom writeLong(long l)
writeLong in interface MCDataOutputpublic PacketCustom writeChar(char c)
writeChar in interface MCDataOutputpublic PacketCustom writeVarInt(int i)
writeVarInt in interface MCDataOutputpublic PacketCustom writeVarShort(int s)
writeVarShort in interface MCDataOutputpublic PacketCustom writeByteArray(byte[] barray)
writeByteArray in interface MCDataOutputpublic PacketCustom writeString(java.lang.String s)
writeString in interface MCDataOutputpublic PacketCustom writeCoord(int x, int y, int z)
writeCoord in interface MCDataOutputpublic PacketCustom writeCoord(BlockCoord coord)
writeCoord in interface MCDataOutputpublic PacketCustom writeItemStack(ItemStack stack)
writeItemStack in interface MCDataOutputpublic PacketCustom writeItemStack(ItemStack stack, boolean large)
public PacketCustom writeNBTTagCompound(NBTTagCompound compound)
writeNBTTagCompound in interface MCDataOutputpublic PacketCustom writeFluidStack(FluidStack fluid)
writeFluidStack in interface MCDataOutputpublic boolean readBoolean()
readBoolean in interface MCDataInputpublic short readUByte()
readUByte in interface MCDataInputpublic int readUShort()
readUShort in interface MCDataInputpublic byte readByte()
readByte in interface MCDataInputpublic short readShort()
readShort in interface MCDataInputpublic int readInt()
readInt in interface MCDataInputpublic float readFloat()
readFloat in interface MCDataInputpublic double readDouble()
readDouble in interface MCDataInputpublic long readLong()
readLong in interface MCDataInputpublic char readChar()
readChar in interface MCDataInputpublic int readVarShort()
readVarShort in interface MCDataInputpublic int readVarInt()
readVarInt in interface MCDataInputpublic BlockCoord readCoord()
readCoord in interface MCDataInputpublic byte[] readByteArray(int length)
readByteArray in interface MCDataInputpublic java.lang.String readString()
readString in interface MCDataInputpublic ItemStack readItemStack()
readItemStack in interface MCDataInputpublic ItemStack readItemStack(boolean large)
public NBTTagCompound readNBTTagCompound()
readNBTTagCompound in interface MCDataInputpublic FluidStack readFluidStack()
readFluidStack in interface MCDataInputpublic FMLProxyPacket toPacket()
public void sendToPlayer(EntityPlayer player)
public static void sendToPlayer(Packet packet,
EntityPlayer player)
public void sendToClients()
public static void sendToClients(Packet packet)
public void sendPacketToAllAround(double x,
double y,
double z,
double range,
int dim)
public static void sendToAllAround(Packet packet,
double x,
double y,
double z,
double range,
int dim)
public void sendToDimension(int dim)
public static void sendToDimension(Packet packet,
int dim)
public void sendToChunk(World world,
int chunkX,
int chunkZ)
public static void sendToChunk(Packet packet,
World world,
int chunkX,
int chunkZ)
public void sendToOps()
public static void sendToOps(Packet packet)
public void sendToServer()
public static void sendToServer(Packet packet)