public class FileSystemAccessEvent
extends cpw.mods.fml.common.eventhandler.Event
Modifier and Type | Class and Description |
---|---|
static class |
FileSystemAccessEvent.Client |
static class |
FileSystemAccessEvent.Server |
Modifier and Type | Field and Description |
---|---|
protected net.minecraft.nbt.NBTTagCompound |
data |
protected java.lang.String |
sound |
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 |
FileSystemAccessEvent(java.lang.String sound,
net.minecraft.tileentity.TileEntity tileEntity,
net.minecraft.nbt.NBTTagCompound data)
Constructor for tile entity hosted file systems.
|
protected |
FileSystemAccessEvent(java.lang.String sound,
net.minecraft.world.World world,
double x,
double y,
double z,
net.minecraft.nbt.NBTTagCompound data)
Constructor for arbitrarily hosted file systems.
|
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 file system lives in, for example.
|
java.lang.String |
getSound()
The name of the sound effect to play for the file system.
|
net.minecraft.tileentity.TileEntity |
getTileEntity()
The tile entity hosting the file system.
|
net.minecraft.world.World |
getWorld()
The world the file system lives in.
|
double |
getX()
The x coordinate of the file system's container.
|
double |
getY()
The y coordinate of the file system's container.
|
double |
getZ()
The z coordinate of the file system's container.
|
protected java.lang.String sound
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 FileSystemAccessEvent(java.lang.String sound, net.minecraft.tileentity.TileEntity tileEntity, net.minecraft.nbt.NBTTagCompound data)
sound
- the name of the sound effect to play.tileEntity
- the tile entity hosting the file system.data
- the additional data.protected FileSystemAccessEvent(java.lang.String sound, net.minecraft.world.World world, double x, double y, double z, net.minecraft.nbt.NBTTagCompound data)
sound
- the name of the sound effect to play.world
- the world the file system lives in.x
- the x coordinate of the file system's container.y
- the y coordinate of the file system's container.z
- the z coordinate of the file system's container.data
- the additional data.public java.lang.String getSound()
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()