public class PlayBattleMusicPacket extends AbstractPixelmonPacket
| Constructor and Description |
|---|
PlayBattleMusicPacket()
Empty constructor for packet registration.
|
PlayBattleMusicPacket(BattleMusicType type,
int songIndex,
long playtime,
boolean repeat) |
| Modifier and Type | Method and Description |
|---|---|
void |
decode(net.minecraft.network.PacketBuffer buf)
Convert from the supplied buffer into your specific message type
|
void |
encode(net.minecraft.network.PacketBuffer buf)
Deconstruct your message into the supplied byte buffer
|
protected void |
handlePacket(net.minecraftforge.fml.network.NetworkEvent.Context context) |
handle, replypublic PlayBattleMusicPacket()
public PlayBattleMusicPacket(BattleMusicType type, int songIndex, long playtime, boolean repeat)
public void decode(net.minecraft.network.PacketBuffer buf)
decode in interface PixelmonPacketdecode in class AbstractPixelmonPacketbuf - public void encode(net.minecraft.network.PacketBuffer buf)
encode in interface PixelmonPacketencode in class AbstractPixelmonPacketbuf - protected void handlePacket(net.minecraftforge.fml.network.NetworkEvent.Context context)
handlePacket in class AbstractPixelmonPacket