blob: 571a732d8135bacde566d2d54e4b2c15321e2588 [file] [log] [blame] [raw]
package li.cil.oc.common.tileentity
import cpw.mods.fml.relauncher.{Side, SideOnly}
import net.minecraft.block.Block
import net.minecraft.nbt.NBTTagCompound
import net.minecraft.world.World
trait TileEntity {
def world: World
def x: Int
def y: Int
def z: Int
def block: Block
def isClient = world.isRemote
def isServer = !isClient
@SideOnly(Side.CLIENT)
def readFromNBTForClient(nbt: NBTTagCompound) {}
def writeToNBTForClient(nbt: NBTTagCompound) {}
}