public class NetworkActivityEvent
extends cpw.mods.fml.common.eventhandler.Event
| Modifier and Type | Class and Description |
|---|---|
static class |
NetworkActivityEvent.Client |
static class |
NetworkActivityEvent.Server |
| Modifier and Type | Field and Description |
|---|---|
protected net.minecraft.nbt.NBTTagCompound |
data |
protected net.minecraft.tileentity.TileEntity |
tileEntity |
protected net.minecraft.world.World |
world |
protected double |
x |
protected double |
y |
protected double |
z |
| Modifier | Constructor and Description |
|---|---|
protected |
NetworkActivityEvent(net.minecraft.tileentity.TileEntity tileEntity,
net.minecraft.nbt.NBTTagCompound data)
Constructor for tile entity hosted network cards.
|
protected |
NetworkActivityEvent(net.minecraft.world.World world,
double x,
double y,
double z,
net.minecraft.nbt.NBTTagCompound data)
Constructor for arbitrarily hosted network cards.
|
| Modifier and Type | Method and Description |
|---|---|
net.minecraft.nbt.NBTTagCompound |
getData()
Addition custom data, this is used to transmit the number of the server
in a server rack the network card lives in, for example.
|
net.minecraft.tileentity.TileEntity |
getTileEntity()
The tile entity hosting the network card.
|
net.minecraft.world.World |
getWorld()
The world the network card lives in.
|
double |
getX()
The x coordinate of the network card's container.
|
double |
getY()
The y coordinate of the network card's container.
|
double |
getZ()
The z coordinate of the network card's container.
|
protected net.minecraft.world.World world
protected double x
protected double y
protected double z
protected net.minecraft.tileentity.TileEntity tileEntity
protected net.minecraft.nbt.NBTTagCompound data
protected NetworkActivityEvent(net.minecraft.tileentity.TileEntity tileEntity,
net.minecraft.nbt.NBTTagCompound data)
tileEntity - the tile entity hosting the network card.data - the additional data.protected NetworkActivityEvent(net.minecraft.world.World world,
double x,
double y,
double z,
net.minecraft.nbt.NBTTagCompound data)
world - the world the network card lives in.x - the x coordinate of the network card's container.y - the y coordinate of the network card's container.z - the z coordinate of the network card's container.data - the additional data.public net.minecraft.world.World getWorld()
public double getX()
public double getY()
public double getZ()
public net.minecraft.tileentity.TileEntity getTileEntity()
public net.minecraft.nbt.NBTTagCompound getData()