Exemplo n.º 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 BakedPotatoMat element) {
   byID.put(element.getType(), element);
   byName.put(element.getTypeName(), element);
 }
Exemplo n.º 2
0
 @Override
 public BakedPotatoMat[] types() {
   return BakedPotatoMat.bakedPotatoTypes();
 }
Exemplo n.º 3
0
 static {
   BakedPotatoMat.register(BAKED_POTATO);
 }