package k2b6s9j.BoatCraft.core.registry

import k2b6s9j.BoatCraft.core.traits.Material
import k2b6s9j.BoatCraft.core.BoatCraft

object MaterialRegistry {

  var materials: Array[Material] = new Array[Material](0)

  def addMaterial(newMaterial: Material) {
    newMaterial +: materials
    BoatCraft.log.info("Added %s to the Material array.", newMaterial.toString)
  }

  def addMaterials(newMaterials: Array[Material]) {
    newMaterials ++: materials
    for (material: Material <- newMaterials) {
      BoatCraft.log.info("Added %s to the Material array.", material.toString)
    }
  }

}
package k2b6s9j.BoatCraft.core.registry

import k2b6s9j.BoatCraft.core.traits.Material

object MaterialRegistry {

  var materials: Array[Material] = new Array[Material](0)

  def addMaterial(newMaterial: Material) {
    newMaterial +: materials
  }

  def addMaterials(newMaterials: Array[Material]) {
    newMaterials ++: materials
  }

}
--- 
+++ 
@@ -1,6 +1,7 @@
 package k2b6s9j.BoatCraft.core.registry
 
 import k2b6s9j.BoatCraft.core.traits.Material
+import k2b6s9j.BoatCraft.core.BoatCraft
 
 object MaterialRegistry {
 
@@ -8,10 +9,14 @@
 
   def addMaterial(newMaterial: Material) {
     newMaterial +: materials
+    BoatCraft.log.info("Added %s to the Material array.", newMaterial.toString)
   }
 
   def addMaterials(newMaterials: Array[Material]) {
     newMaterials ++: materials
+    for (material: Material <- newMaterials) {
+      BoatCraft.log.info("Added %s to the Material array.", material.toString)
+    }
   }
 
 }
Print when mods are added to the Material array.

This will be togglable when mod goes into production.
