public class DetectionListenerPacket extends PacketCodec
| Constructor and Description |
|---|
DetectionListenerPacket()
Empty packet.
|
DetectionListenerPacket(ILocation location,
boolean activation)
Creates a packet which contains the location data.
|
DetectionListenerPacket(int x,
int y,
int z,
boolean activation)
Creates a packet with coordinates.
|
| Modifier and Type | Method and Description |
|---|---|
void |
actionClient(net.minecraft.world.World world,
net.minecraft.entity.player.EntityPlayer player)
Actions for client-side.
|
void |
actionServer(net.minecraft.world.World world,
net.minecraft.entity.player.EntityPlayerMP player)
Actions for server-side.
|
decode, encode, getActionpublic DetectionListenerPacket()
public DetectionListenerPacket(int x,
int y,
int z,
boolean activation)
x - The X coordinate.y - The Y coordinate.z - The Z coordinate.activation - If the structure is being activated, otherwise deactivated.public DetectionListenerPacket(ILocation location, boolean activation)
location - The location data.activation - If the structure is being activated, otherwise deactivated.public void actionClient(net.minecraft.world.World world,
net.minecraft.entity.player.EntityPlayer player)
PacketBaseactionClient in class PacketBaseworld - The world.player - The player.public void actionServer(net.minecraft.world.World world,
net.minecraft.entity.player.EntityPlayerMP player)
PacketBaseactionServer in class PacketBaseworld - The world.player - The player.