public class UseMoveSkillPacket extends AbstractPixelmonPacket
Constructor and Description |
---|
UseMoveSkillPacket() |
UseMoveSkillPacket(int selectedPixelmon,
MoveSkill moveSkill)
Initializes a packet to use a move skill that has no target.
|
UseMoveSkillPacket(int selectedPixelmon,
MoveSkill moveSkill,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.Direction side)
Initializes a packet to use a move skill that has a block target.
|
UseMoveSkillPacket(int selectedPixelmon,
MoveSkill moveSkill,
int entityId,
MoveSkill.EnumTargetType targetType)
Initializes a packet to use a move skill that has an entity target.
|
Modifier and Type | Method and Description |
---|---|
void |
decode(net.minecraft.network.PacketBuffer buf)
Decodes the information from the buffer to the packet instance
|
void |
encode(net.minecraft.network.PacketBuffer buf)
Encodes the buffer with the packet information
|
protected void |
handlePacket(net.minecraftforge.fml.network.NetworkEvent.Context context) |
handle, reply
public UseMoveSkillPacket()
public UseMoveSkillPacket(int selectedPixelmon, MoveSkill moveSkill)
public UseMoveSkillPacket(int selectedPixelmon, MoveSkill moveSkill, int entityId, MoveSkill.EnumTargetType targetType)
public UseMoveSkillPacket(int selectedPixelmon, MoveSkill moveSkill, net.minecraft.util.math.BlockPos pos, net.minecraft.util.Direction side)
public void decode(net.minecraft.network.PacketBuffer buf)
PixelmonPacket
decode
in interface PixelmonPacket
decode
in class AbstractPixelmonPacket
buf
- The buffer being decodedpublic void encode(net.minecraft.network.PacketBuffer buf)
PixelmonPacket
encode
in interface PixelmonPacket
encode
in class AbstractPixelmonPacket
buf
- The buffer being encodedprotected void handlePacket(net.minecraftforge.fml.network.NetworkEvent.Context context)
handlePacket
in class AbstractPixelmonPacket