public interface WirelessEndpoint
Network.updateWirelessNetwork(WirelessEndpoint)
.Modifier and Type | Method and Description |
---|---|
void |
receivePacket(Packet packet,
WirelessEndpoint sender)
Makes the endpoint receive a single packet.
|
net.minecraft.world.World |
world()
The world this endpoint lives in.
|
int |
x()
The X coordinate of the endpoint in the world, in block coordinates.
|
int |
y()
The Y coordinate of the endpoint in the world, in block coordinates.
|
int |
z()
The Z coordinate of the endpoint in the world, in block coordinates.
|
int x()
int y()
int z()
net.minecraft.world.World world()
void receivePacket(Packet packet, WirelessEndpoint sender)
packet
- the packet to receive.sender
- the endpoint that sent the message. This is not
necessarily the original sender of the packet, just
the last point it went through, such as an access
point, for example.