mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-16 18:55:03 -04:00
Avoid herpderps.
This commit is contained in:
parent
8531c22106
commit
9fb8ad57f9
@ -73,7 +73,7 @@ class TerminalServer(val rack: api.internal.Rack, val slot: Int) extends Environ
|
||||
// ----------------------------------------------------------------------- //
|
||||
// DeviceInfo
|
||||
|
||||
private final val deviceInfo = Map(
|
||||
private final lazy val deviceInfo = Map(
|
||||
DeviceAttribute.Class -> DeviceClass.Generic,
|
||||
DeviceAttribute.Description -> "Terminal server",
|
||||
DeviceAttribute.Vendor -> Constants.DeviceInfo.DefaultVendor,
|
||||
|
@ -103,7 +103,7 @@ class TextBuffer(val host: EnvironmentHost) extends prefab.ManagedEnvironment wi
|
||||
relativeLitArea = -1 // Recompute lit area, avoid screens blanking out until something changes.
|
||||
}
|
||||
|
||||
private final val deviceInfo = Map(
|
||||
private final lazy val deviceInfo = Map(
|
||||
DeviceAttribute.Class -> DeviceClass.Display,
|
||||
DeviceAttribute.Description -> "Text buffer",
|
||||
DeviceAttribute.Vendor -> Constants.DeviceInfo.DefaultVendor,
|
||||
|
@ -32,7 +32,7 @@ class Adapter extends traits.Environment with traits.ComponentInventory with Ana
|
||||
|
||||
private val blocksData = Array.fill[Option[BlockData]](6)(None)
|
||||
|
||||
private final val deviceInfo = Map(
|
||||
private final lazy val deviceInfo = Map(
|
||||
DeviceAttribute.Class -> DeviceClass.Bus,
|
||||
DeviceAttribute.Description -> "Adapter",
|
||||
DeviceAttribute.Vendor -> Constants.DeviceInfo.DefaultVendor,
|
||||
|
@ -35,7 +35,7 @@ class Assembler extends traits.Environment with traits.PowerAcceptor with traits
|
||||
|
||||
var requiredEnergy = 0.0
|
||||
|
||||
private final val deviceInfo = Map(
|
||||
private final lazy val deviceInfo = Map(
|
||||
DeviceAttribute.Class -> DeviceClass.Generic,
|
||||
DeviceAttribute.Description -> "Assembler",
|
||||
DeviceAttribute.Vendor -> Constants.DeviceInfo.DefaultVendor,
|
||||
|
@ -21,7 +21,7 @@ class Capacitor extends traits.Environment with DeviceInfo {
|
||||
withConnector(maxCapacity).
|
||||
create()
|
||||
|
||||
private final val deviceInfo = Map(
|
||||
private final lazy val deviceInfo = Map(
|
||||
DeviceAttribute.Class -> DeviceClass.Power,
|
||||
DeviceAttribute.Description -> "Battery",
|
||||
DeviceAttribute.Vendor -> Constants.DeviceInfo.DefaultVendor,
|
||||
|
@ -33,7 +33,7 @@ class Case(var tier: Int) extends traits.PowerAcceptor with traits.Computer with
|
||||
|
||||
color = Color.byTier(tier)
|
||||
|
||||
private final val deviceInfo = Map(
|
||||
private final lazy val deviceInfo = Map(
|
||||
DeviceAttribute.Class -> DeviceClass.System,
|
||||
DeviceAttribute.Description -> "Computer",
|
||||
DeviceAttribute.Vendor -> Constants.DeviceInfo.DefaultVendor,
|
||||
|
@ -43,7 +43,7 @@ class Charger extends traits.Environment with traits.PowerAcceptor with traits.R
|
||||
|
||||
var invertSignal = false
|
||||
|
||||
private final val deviceInfo = Map(
|
||||
private final lazy val deviceInfo = Map(
|
||||
DeviceAttribute.Class -> DeviceClass.Generic,
|
||||
DeviceAttribute.Description -> "Charger",
|
||||
DeviceAttribute.Vendor -> Constants.DeviceInfo.DefaultVendor,
|
||||
|
@ -49,7 +49,7 @@ class Disassembler extends traits.Environment with traits.PowerAcceptor with tra
|
||||
world.notifyBlocksOfNeighborChange(x, y, z, block)
|
||||
}
|
||||
|
||||
private final val deviceInfo = Map(
|
||||
private final lazy val deviceInfo = Map(
|
||||
DeviceAttribute.Class -> DeviceClass.Generic,
|
||||
DeviceAttribute.Description -> "Disassembler",
|
||||
DeviceAttribute.Vendor -> Constants.DeviceInfo.DefaultVendor,
|
||||
|
@ -37,7 +37,7 @@ class DiskDrive extends traits.Environment with traits.ComponentInventory with t
|
||||
case _ => None
|
||||
}
|
||||
|
||||
private final val deviceInfo = Map(
|
||||
private final lazy val deviceInfo = Map(
|
||||
DeviceAttribute.Class -> DeviceClass.Disk,
|
||||
DeviceAttribute.Description -> "Floppy disk drive",
|
||||
DeviceAttribute.Vendor -> Constants.DeviceInfo.DefaultVendor,
|
||||
|
@ -37,7 +37,7 @@ class Hologram(var tier: Int) extends traits.Environment with SidedEnvironment w
|
||||
|
||||
final val height = 2 * 16 // 32 bit in an int
|
||||
|
||||
private final val deviceInfo = Map(
|
||||
private final lazy val deviceInfo = Map(
|
||||
DeviceAttribute.Class -> DeviceClass.Display,
|
||||
DeviceAttribute.Description -> "Holographic projector",
|
||||
DeviceAttribute.Vendor -> Constants.DeviceInfo.DefaultVendor,
|
||||
|
@ -52,7 +52,7 @@ class Microcontroller extends traits.PowerAcceptor with traits.Hub with traits.C
|
||||
|
||||
override protected def runSound = None // Microcontrollers are silent.
|
||||
|
||||
private final val deviceInfo = Map(
|
||||
private final lazy val deviceInfo = Map(
|
||||
DeviceAttribute.Class -> DeviceClass.System,
|
||||
DeviceAttribute.Description -> "Microcontroller",
|
||||
DeviceAttribute.Vendor -> Constants.DeviceInfo.DefaultVendor,
|
||||
|
@ -34,7 +34,7 @@ class MotionSensor extends traits.Environment with DeviceInfo {
|
||||
|
||||
private val trackedEntities = mutable.Map.empty[EntityLivingBase, (Double, Double, Double)]
|
||||
|
||||
private final val deviceInfo = Map(
|
||||
private final lazy val deviceInfo = Map(
|
||||
DeviceAttribute.Class -> DeviceClass.Generic,
|
||||
DeviceAttribute.Description -> "Motion sensor",
|
||||
DeviceAttribute.Vendor -> Constants.DeviceInfo.DefaultVendor,
|
||||
|
@ -20,7 +20,7 @@ class PowerConverter extends traits.PowerAcceptor with traits.Environment with t
|
||||
withConnector(Settings.get.bufferConverter).
|
||||
create()
|
||||
|
||||
private final val deviceInfo = Map(
|
||||
private final lazy val deviceInfo = Map(
|
||||
DeviceAttribute.Class -> DeviceClass.Power,
|
||||
DeviceAttribute.Description -> "Power converter",
|
||||
DeviceAttribute.Vendor -> Constants.DeviceInfo.DefaultVendor,
|
||||
|
@ -47,7 +47,7 @@ class Printer extends traits.Environment with traits.Inventory with traits.Rotat
|
||||
val slotInk = 1
|
||||
val slotOutput = 2
|
||||
|
||||
private final val deviceInfo = Map(
|
||||
private final lazy val deviceInfo = Map(
|
||||
DeviceAttribute.Class -> DeviceClass.Printer,
|
||||
DeviceAttribute.Description -> "3D Printer",
|
||||
DeviceAttribute.Vendor -> Constants.DeviceInfo.DefaultVendor,
|
||||
|
@ -17,7 +17,7 @@ class CPU(val tier: Int) extends prefab.ManagedEnvironment with DeviceInfo {
|
||||
override val node = Network.newNode(this, Visibility.Network).
|
||||
create()
|
||||
|
||||
private final val deviceInfo = Map(
|
||||
private final lazy val deviceInfo = Map(
|
||||
DeviceAttribute.Class -> DeviceClass.Processor,
|
||||
DeviceAttribute.Description -> "CPU",
|
||||
DeviceAttribute.Vendor -> Constants.DeviceInfo.DefaultVendor,
|
||||
|
@ -77,7 +77,7 @@ object DataCard {
|
||||
}
|
||||
|
||||
class Tier1 extends DataCard {
|
||||
private final val deviceInfo = Map(
|
||||
private final lazy val deviceInfo = Map(
|
||||
DeviceAttribute.Class -> DeviceClass.Processor,
|
||||
DeviceAttribute.Description -> "Data processor card",
|
||||
DeviceAttribute.Vendor -> "S.C. Ltd.",
|
||||
@ -138,7 +138,7 @@ object DataCard {
|
||||
}
|
||||
|
||||
class Tier2 extends Tier1 {
|
||||
private final val deviceInfo = Map(
|
||||
private final lazy val deviceInfo = Map(
|
||||
DeviceAttribute.Class -> DeviceClass.Processor,
|
||||
DeviceAttribute.Description -> "Data processor card",
|
||||
DeviceAttribute.Vendor -> "S.C. Ltd.",
|
||||
@ -212,7 +212,7 @@ object DataCard {
|
||||
}
|
||||
|
||||
class Tier3 extends Tier2 {
|
||||
private final val deviceInfo = Map(
|
||||
private final lazy val deviceInfo = Map(
|
||||
DeviceAttribute.Class -> DeviceClass.Processor,
|
||||
DeviceAttribute.Description -> "Data processor card",
|
||||
DeviceAttribute.Vendor -> "S.C. Ltd.",
|
||||
|
@ -44,7 +44,7 @@ class DiskDriveMountable(val rack: api.internal.Rack, val slot: Int) extends pre
|
||||
// ----------------------------------------------------------------------- //
|
||||
// DeviceInfo
|
||||
|
||||
private final val deviceInfo = Map(
|
||||
private final lazy val deviceInfo = Map(
|
||||
DeviceAttribute.Class -> DeviceClass.Disk,
|
||||
DeviceAttribute.Description -> "Floppy disk drive",
|
||||
DeviceAttribute.Vendor -> Constants.DeviceInfo.DefaultVendor,
|
||||
|
@ -53,7 +53,7 @@ class Drive(val capacity: Int, val platterCount: Int, val label: Label, host: Op
|
||||
|
||||
// ----------------------------------------------------------------------- //
|
||||
|
||||
private final val deviceInfo = Map(
|
||||
private final lazy val deviceInfo = Map(
|
||||
DeviceAttribute.Class -> DeviceClass.Disk,
|
||||
DeviceAttribute.Description -> "Hard disk drive",
|
||||
DeviceAttribute.Vendor -> Constants.DeviceInfo.DefaultVendor,
|
||||
|
@ -27,7 +27,7 @@ class Drone(val agent: entity.Drone) extends prefab.ManagedEnvironment with Agen
|
||||
withConnector(Settings.get.bufferDrone).
|
||||
create()
|
||||
|
||||
private final val deviceInfo = Map(
|
||||
private final lazy val deviceInfo = Map(
|
||||
DeviceAttribute.Class -> DeviceClass.System,
|
||||
DeviceAttribute.Description -> "Drone",
|
||||
DeviceAttribute.Vendor -> Constants.DeviceInfo.DefaultVendor,
|
||||
|
@ -36,7 +36,7 @@ class EEPROM extends prefab.ManagedEnvironment with DeviceInfo {
|
||||
|
||||
// ----------------------------------------------------------------------- //
|
||||
|
||||
private final val deviceInfo = Map(
|
||||
private final lazy val deviceInfo = Map(
|
||||
DeviceAttribute.Class -> DeviceClass.Memory,
|
||||
DeviceAttribute.Description -> "EEPROM",
|
||||
DeviceAttribute.Vendor -> Constants.DeviceInfo.DefaultVendor,
|
||||
|
@ -45,7 +45,7 @@ class FileSystem(val fileSystem: IFileSystem, var label: Label, val host: Option
|
||||
|
||||
// ----------------------------------------------------------------------- //
|
||||
|
||||
private final val deviceInfo = Map(
|
||||
private final lazy val deviceInfo = Map(
|
||||
DeviceAttribute.Class -> DeviceClass.Volume,
|
||||
DeviceAttribute.Description -> "Filesystem",
|
||||
DeviceAttribute.Vendor -> Constants.DeviceInfo.DefaultVendor,
|
||||
|
@ -39,7 +39,7 @@ class Geolyzer(val host: EnvironmentHost) extends prefab.ManagedEnvironment with
|
||||
withConnector().
|
||||
create()
|
||||
|
||||
private final val deviceInfo = Map(
|
||||
private final lazy val deviceInfo = Map(
|
||||
DeviceAttribute.Class -> DeviceClass.Generic,
|
||||
DeviceAttribute.Description -> "Geolyzer",
|
||||
DeviceAttribute.Vendor -> Constants.DeviceInfo.DefaultVendor,
|
||||
|
@ -61,7 +61,7 @@ class GraphicsCard(val tier: Int) extends prefab.ManagedEnvironment with DeviceI
|
||||
|
||||
// ----------------------------------------------------------------------- //
|
||||
|
||||
private final val deviceInfo = Map(
|
||||
private final lazy val deviceInfo = Map(
|
||||
DeviceAttribute.Class -> DeviceClass.Display,
|
||||
DeviceAttribute.Description -> "Graphics controller",
|
||||
DeviceAttribute.Vendor -> Constants.DeviceInfo.DefaultVendor,
|
||||
|
@ -44,7 +44,7 @@ class InternetCard extends prefab.ManagedEnvironment with DeviceInfo {
|
||||
|
||||
// ----------------------------------------------------------------------- //
|
||||
|
||||
private final val deviceInfo = Map(
|
||||
private final lazy val deviceInfo = Map(
|
||||
DeviceAttribute.Class -> DeviceClass.Communication,
|
||||
DeviceAttribute.Description -> "Internet modem",
|
||||
DeviceAttribute.Vendor -> Constants.DeviceInfo.DefaultVendor,
|
||||
|
@ -35,7 +35,7 @@ class Keyboard(val host: EnvironmentHost) extends prefab.ManagedEnvironment with
|
||||
|
||||
// ----------------------------------------------------------------------- //
|
||||
|
||||
private final val deviceInfo = Map(
|
||||
private final lazy val deviceInfo = Map(
|
||||
DeviceAttribute.Class -> DeviceClass.Input,
|
||||
DeviceAttribute.Description -> "Keyboard",
|
||||
DeviceAttribute.Vendor -> Constants.DeviceInfo.DefaultVendor,
|
||||
|
@ -29,7 +29,7 @@ class LinkedCard extends prefab.ManagedEnvironment with QuantumNetwork.QuantumNo
|
||||
|
||||
// ----------------------------------------------------------------------- //
|
||||
|
||||
private final val deviceInfo = Map(
|
||||
private final lazy val deviceInfo = Map(
|
||||
DeviceAttribute.Class -> DeviceClass.Network,
|
||||
DeviceAttribute.Description -> "Quantumnet controller",
|
||||
DeviceAttribute.Vendor -> Constants.DeviceInfo.DefaultVendor,
|
||||
|
@ -17,7 +17,7 @@ class Memory(val tier: Int) extends prefab.ManagedEnvironment with DeviceInfo {
|
||||
override val node = Network.newNode(this, Visibility.Network).
|
||||
create()
|
||||
|
||||
private final val deviceInfo = Map(
|
||||
private final lazy val deviceInfo = Map(
|
||||
DeviceAttribute.Class -> DeviceClass.Memory,
|
||||
DeviceAttribute.Description -> "Memory bank",
|
||||
DeviceAttribute.Vendor -> Constants.DeviceInfo.DefaultVendor,
|
||||
|
@ -43,7 +43,7 @@ class NetworkCard(val host: EnvironmentHost) extends prefab.ManagedEnvironment w
|
||||
|
||||
// ----------------------------------------------------------------------- //
|
||||
|
||||
private final val deviceInfo = Map(
|
||||
private final lazy val deviceInfo = Map(
|
||||
DeviceAttribute.Class -> DeviceClass.Network,
|
||||
DeviceAttribute.Description -> "Ethernet controller",
|
||||
DeviceAttribute.Vendor -> Constants.DeviceInfo.DefaultVendor,
|
||||
|
@ -28,7 +28,7 @@ object Redstone {
|
||||
|
||||
class BundledWireless(val redstone: EnvironmentHost with BundledRedstoneAware)
|
||||
extends component.RedstoneVanilla with component.RedstoneBundled with component.RedstoneWireless {
|
||||
private final val deviceInfo = Map(
|
||||
private final lazy val deviceInfo = Map(
|
||||
DeviceAttribute.Class -> DeviceClass.Communication,
|
||||
DeviceAttribute.Description -> "Combined redstone controller",
|
||||
DeviceAttribute.Vendor -> Constants.DeviceInfo.DefaultVendor,
|
||||
|
@ -15,7 +15,7 @@ import li.cil.oc.common.tileentity.traits.BundledRedstoneAware
|
||||
import scala.collection.convert.WrapAsJava._
|
||||
|
||||
trait RedstoneBundled extends RedstoneVanilla {
|
||||
private final val deviceInfo = Map(
|
||||
private final lazy val deviceInfo = Map(
|
||||
DeviceAttribute.Class -> DeviceClass.Communication,
|
||||
DeviceAttribute.Description -> "Advanced redstone controller",
|
||||
DeviceAttribute.Vendor -> Constants.DeviceInfo.DefaultVendor,
|
||||
|
@ -25,7 +25,7 @@ trait RedstoneVanilla extends RedstoneSignaller with DeviceInfo {
|
||||
|
||||
// ----------------------------------------------------------------------- //
|
||||
|
||||
private final val deviceInfo = Map(
|
||||
private final lazy val deviceInfo = Map(
|
||||
DeviceAttribute.Class -> DeviceClass.Communication,
|
||||
DeviceAttribute.Description -> "Redstone controller",
|
||||
DeviceAttribute.Vendor -> Constants.DeviceInfo.DefaultVendor,
|
||||
|
@ -36,7 +36,7 @@ trait RedstoneWireless extends RedstoneSignaller with WirelessReceivingDevice wi
|
||||
|
||||
// ----------------------------------------------------------------------- //
|
||||
|
||||
private final val deviceInfo = Map(
|
||||
private final lazy val deviceInfo = Map(
|
||||
DeviceAttribute.Class -> DeviceClass.Communication,
|
||||
DeviceAttribute.Description -> "Wireless redstone controller",
|
||||
DeviceAttribute.Vendor -> Constants.DeviceInfo.DefaultVendor,
|
||||
|
@ -34,7 +34,7 @@ class Robot(val agent: tileentity.Robot) extends prefab.ManagedEnvironment with
|
||||
val romRobot = Option(api.FileSystem.asManagedEnvironment(api.FileSystem.
|
||||
fromClass(OpenComputers.getClass, Settings.resourceDomain, "lua/component/robot"), "robot"))
|
||||
|
||||
private final val deviceInfo = Map(
|
||||
private final lazy val deviceInfo = Map(
|
||||
DeviceAttribute.Class -> DeviceClass.System,
|
||||
DeviceAttribute.Description -> "Robot",
|
||||
DeviceAttribute.Vendor -> Constants.DeviceInfo.DefaultVendor,
|
||||
|
@ -44,7 +44,7 @@ class Server(val rack: api.internal.Rack, val slot: Int) extends Environment wit
|
||||
var lastFileSystemAccess = 0L
|
||||
var lastNetworkActivity = 0L
|
||||
|
||||
private final val deviceInfo = Map(
|
||||
private final lazy val deviceInfo = Map(
|
||||
DeviceAttribute.Class -> DeviceClass.System,
|
||||
DeviceAttribute.Description -> "Server",
|
||||
DeviceAttribute.Vendor -> Constants.DeviceInfo.DefaultVendor,
|
||||
|
@ -23,7 +23,7 @@ class Tablet(val tablet: TabletWrapper) extends prefab.ManagedEnvironment with D
|
||||
withConnector(Settings.get.bufferTablet).
|
||||
create()
|
||||
|
||||
private final val deviceInfo = Map(
|
||||
private final lazy val deviceInfo = Map(
|
||||
DeviceAttribute.Class -> DeviceClass.System,
|
||||
DeviceAttribute.Description -> "Tablet",
|
||||
DeviceAttribute.Vendor -> Constants.DeviceInfo.DefaultVendor,
|
||||
|
@ -28,7 +28,7 @@ object Transposer {
|
||||
withConnector().
|
||||
create()
|
||||
|
||||
private final val deviceInfo = Map(
|
||||
private final lazy val deviceInfo = Map(
|
||||
DeviceAttribute.Class -> DeviceClass.Generic,
|
||||
DeviceAttribute.Description -> "Transposer",
|
||||
DeviceAttribute.Vendor -> Constants.DeviceInfo.DefaultVendor,
|
||||
|
@ -21,7 +21,7 @@ class UpgradeAngel extends prefab.ManagedEnvironment with DeviceInfo {
|
||||
withComponent("angel").
|
||||
create()
|
||||
|
||||
private final val deviceInfo = Map(
|
||||
private final lazy val deviceInfo = Map(
|
||||
DeviceAttribute.Class -> DeviceClass.Generic,
|
||||
DeviceAttribute.Description -> "Angel upgrade",
|
||||
DeviceAttribute.Vendor -> Constants.DeviceInfo.DefaultVendor,
|
||||
|
@ -18,7 +18,7 @@ class UpgradeBattery(val tier: Int) extends prefab.ManagedEnvironment with Devic
|
||||
withConnector(Settings.get.bufferCapacitorUpgrades(tier)).
|
||||
create()
|
||||
|
||||
private final val deviceInfo = Map(
|
||||
private final lazy val deviceInfo = Map(
|
||||
DeviceAttribute.Class -> DeviceClass.Power,
|
||||
DeviceAttribute.Description -> "Battery",
|
||||
DeviceAttribute.Vendor -> Constants.DeviceInfo.DefaultVendor,
|
||||
|
@ -27,7 +27,7 @@ class UpgradeChunkloader(val host: EnvironmentHost) extends prefab.ManagedEnviro
|
||||
withConnector().
|
||||
create()
|
||||
|
||||
private final val deviceInfo = Map(
|
||||
private final lazy val deviceInfo = Map(
|
||||
DeviceAttribute.Class -> DeviceClass.Generic,
|
||||
DeviceAttribute.Description -> "World stabilizer",
|
||||
DeviceAttribute.Vendor -> Constants.DeviceInfo.DefaultVendor,
|
||||
|
@ -32,7 +32,7 @@ class UpgradeCrafting(val host: EnvironmentHost with internal.Robot) extends pre
|
||||
withComponent("crafting").
|
||||
create()
|
||||
|
||||
private final val deviceInfo = Map(
|
||||
private final lazy val deviceInfo = Map(
|
||||
DeviceAttribute.Class -> DeviceClass.Generic,
|
||||
DeviceAttribute.Description -> "Assembly controller",
|
||||
DeviceAttribute.Vendor -> Constants.DeviceInfo.DefaultVendor,
|
||||
|
@ -28,7 +28,7 @@ class UpgradeDatabase(val data: IInventory) extends prefab.ManagedEnvironment wi
|
||||
withComponent("database").
|
||||
create()
|
||||
|
||||
private final val deviceInfo = Map(
|
||||
private final lazy val deviceInfo = Map(
|
||||
DeviceAttribute.Class -> DeviceClass.Generic,
|
||||
DeviceAttribute.Description -> "Object catalogue",
|
||||
DeviceAttribute.Vendor -> Constants.DeviceInfo.DefaultVendor,
|
||||
|
@ -29,7 +29,7 @@ class UpgradeExperience(val host: EnvironmentHost with internal.Agent) extends p
|
||||
withConnector(30 * Settings.get.bufferPerLevel).
|
||||
create()
|
||||
|
||||
private final val deviceInfo = Map(
|
||||
private final lazy val deviceInfo = Map(
|
||||
DeviceAttribute.Class -> DeviceClass.Generic,
|
||||
DeviceAttribute.Description -> "Knowledge database",
|
||||
DeviceAttribute.Vendor -> Constants.DeviceInfo.DefaultVendor,
|
||||
|
@ -33,7 +33,7 @@ class UpgradeGenerator(val host: EnvironmentHost with internal.Agent) extends pr
|
||||
|
||||
var remainingTicks = 0
|
||||
|
||||
private final val deviceInfo = Map(
|
||||
private final lazy val deviceInfo = Map(
|
||||
DeviceAttribute.Class -> DeviceClass.Power,
|
||||
DeviceAttribute.Description -> "Generator",
|
||||
DeviceAttribute.Vendor -> Constants.DeviceInfo.DefaultVendor,
|
||||
|
@ -23,7 +23,7 @@ import scala.collection.convert.WrapAsJava._
|
||||
object UpgradeInventoryController {
|
||||
|
||||
trait Common extends DeviceInfo {
|
||||
private final val deviceInfo = Map(
|
||||
private final lazy val deviceInfo = Map(
|
||||
DeviceAttribute.Class -> DeviceClass.Generic,
|
||||
DeviceAttribute.Description -> "Inventory controller",
|
||||
DeviceAttribute.Vendor -> Constants.DeviceInfo.DefaultVendor,
|
||||
|
@ -35,7 +35,7 @@ class UpgradeLeash(val host: Entity) extends prefab.ManagedEnvironment with trai
|
||||
|
||||
final val MaxLeashedEntities = 8
|
||||
|
||||
private final val deviceInfo = Map(
|
||||
private final lazy val deviceInfo = Map(
|
||||
DeviceAttribute.Class -> DeviceClass.Generic,
|
||||
DeviceAttribute.Description -> "Leash",
|
||||
DeviceAttribute.Vendor -> Constants.DeviceInfo.DefaultVendor,
|
||||
|
@ -35,7 +35,7 @@ class UpgradeNavigation(val host: EnvironmentHost with Rotatable) extends prefab
|
||||
|
||||
val data = new NavigationUpgradeData()
|
||||
|
||||
private final val deviceInfo = Map(
|
||||
private final lazy val deviceInfo = Map(
|
||||
DeviceAttribute.Class -> DeviceClass.Generic,
|
||||
DeviceAttribute.Description -> "Navigation upgrade",
|
||||
DeviceAttribute.Vendor -> Constants.DeviceInfo.DefaultVendor,
|
||||
|
@ -29,7 +29,7 @@ abstract class UpgradePiston(val host: EnvironmentHost) extends prefab.ManagedEn
|
||||
withConnector().
|
||||
create()
|
||||
|
||||
private final val deviceInfo = Map(
|
||||
private final lazy val deviceInfo = Map(
|
||||
DeviceAttribute.Class -> DeviceClass.Generic,
|
||||
DeviceAttribute.Description -> "Piston upgrade",
|
||||
DeviceAttribute.Vendor -> Constants.DeviceInfo.DefaultVendor,
|
||||
|
@ -28,7 +28,7 @@ import net.minecraftforge.event.world.BlockEvent
|
||||
import scala.collection.convert.WrapAsJava._
|
||||
|
||||
abstract class UpgradeSign extends prefab.ManagedEnvironment with DeviceInfo {
|
||||
private final val deviceInfo = Map(
|
||||
private final lazy val deviceInfo = Map(
|
||||
DeviceAttribute.Class -> DeviceClass.Generic,
|
||||
DeviceAttribute.Description -> "Sign upgrade",
|
||||
DeviceAttribute.Vendor -> Constants.DeviceInfo.DefaultVendor,
|
||||
|
@ -26,7 +26,7 @@ class UpgradeSolarGenerator(val host: EnvironmentHost) extends prefab.ManagedEnv
|
||||
|
||||
var isSunShining = false
|
||||
|
||||
private final val deviceInfo = Map(
|
||||
private final lazy val deviceInfo = Map(
|
||||
DeviceAttribute.Class -> DeviceClass.Power,
|
||||
DeviceAttribute.Description -> "Solar panel",
|
||||
DeviceAttribute.Vendor -> Constants.DeviceInfo.DefaultVendor,
|
||||
|
@ -20,7 +20,7 @@ import scala.collection.convert.WrapAsJava._
|
||||
class UpgradeTank(val owner: EnvironmentHost, val capacity: Int) extends prefab.ManagedEnvironment with IFluidTank with DeviceInfo {
|
||||
override val node = Network.newNode(this, Visibility.None).create()
|
||||
|
||||
private final val deviceInfo = Map(
|
||||
private final lazy val deviceInfo = Map(
|
||||
DeviceAttribute.Class -> DeviceClass.Generic,
|
||||
DeviceAttribute.Description -> "Tank upgrade",
|
||||
DeviceAttribute.Vendor -> Constants.DeviceInfo.DefaultVendor,
|
||||
|
@ -21,7 +21,7 @@ import scala.collection.convert.WrapAsJava._
|
||||
object UpgradeTankController {
|
||||
|
||||
trait Common extends DeviceInfo {
|
||||
private final val deviceInfo = Map(
|
||||
private final lazy val deviceInfo = Map(
|
||||
DeviceAttribute.Class -> DeviceClass.Generic,
|
||||
DeviceAttribute.Description -> "Tank controller",
|
||||
DeviceAttribute.Vendor -> Constants.DeviceInfo.DefaultVendor,
|
||||
|
@ -32,7 +32,7 @@ object UpgradeTractorBeam {
|
||||
|
||||
private val pickupRadius = 3
|
||||
|
||||
private final val deviceInfo = Map(
|
||||
private final lazy val deviceInfo = Map(
|
||||
DeviceAttribute.Class -> DeviceClass.Generic,
|
||||
DeviceAttribute.Description -> "Tractor beam",
|
||||
DeviceAttribute.Vendor -> Constants.DeviceInfo.DefaultVendor,
|
||||
|
@ -27,7 +27,7 @@ class UpgradeTrading(val host: EnvironmentHost) extends prefab.ManagedEnvironmen
|
||||
withComponent("trading").
|
||||
create()
|
||||
|
||||
private final val deviceInfo = Map(
|
||||
private final lazy val deviceInfo = Map(
|
||||
DeviceAttribute.Class -> DeviceClass.Generic,
|
||||
DeviceAttribute.Description -> "Trading upgrade",
|
||||
DeviceAttribute.Vendor -> Constants.DeviceInfo.DefaultVendor,
|
||||
|
@ -30,7 +30,7 @@ class WirelessNetworkCard(host: EnvironmentHost) extends NetworkCard(host) with
|
||||
|
||||
// ----------------------------------------------------------------------- //
|
||||
|
||||
private final val deviceInfo = Map(
|
||||
private final lazy val deviceInfo = Map(
|
||||
DeviceAttribute.Class -> DeviceClass.Network,
|
||||
DeviceAttribute.Description -> "Wireless ethernet controller",
|
||||
DeviceAttribute.Vendor -> Constants.DeviceInfo.DefaultVendor,
|
||||
|
Loading…
x
Reference in New Issue
Block a user