Example #1
0
 /**
  * Register new sub-type, may replace existing sub-types. Should be used only if you know what are
  * you doing, it will not create fully usable material.
  *
  * @param element sub-type to register
  */
 public static void register(final LapisBlockMat element) {
   byID.put((byte) element.getType(), element);
   byName.put(element.getTypeName(), element);
 }
Example #2
0
 @Override
 public LapisBlockMat[] types() {
   return LapisBlockMat.lapisBlockTypes();
 }
Example #3
0
 static {
   LapisBlockMat.register(LAPIS_BLOCK);
 }