public class DetectionListenerPacket
extends org.cyclops.cyclopscore.network.PacketCodec
| Constructor and Description |
|---|
DetectionListenerPacket()
Empty packet.
|
DetectionListenerPacket(net.minecraft.util.math.BlockPos 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) |
void |
actionServer(net.minecraft.world.World world,
net.minecraft.entity.player.EntityPlayerMP player) |
boolean |
isAsync() |
public 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(net.minecraft.util.math.BlockPos location,
boolean activation)
location - The location data.activation - If the structure is being activated, otherwise deactivated.public boolean isAsync()
isAsync in class org.cyclops.cyclopscore.network.PacketBasepublic void actionClient(net.minecraft.world.World world,
net.minecraft.entity.player.EntityPlayer player)
actionClient in class org.cyclops.cyclopscore.network.PacketBasepublic void actionServer(net.minecraft.world.World world,
net.minecraft.entity.player.EntityPlayerMP player)
actionServer in class org.cyclops.cyclopscore.network.PacketBase