Beispiel #1
0
 protected SnowLayerMat(final int type) {
   super(
       SNOW_LAYER_1.name(),
       SNOW_LAYER_1.ordinal(),
       SNOW_LAYER_1.getMinecraftId(),
       Integer.toString(type + 1),
       (byte) type,
       SNOW_LAYER_1.getHardness(),
       SNOW_LAYER_1.getBlastResistance());
 }
Beispiel #2
0
 static {
   SnowLayerMat.register(SNOW_LAYER_1);
   SnowLayerMat.register(SNOW_LAYER_2);
   SnowLayerMat.register(SNOW_LAYER_3);
   SnowLayerMat.register(SNOW_LAYER_4);
   SnowLayerMat.register(SNOW_LAYER_5);
   SnowLayerMat.register(SNOW_LAYER_6);
   SnowLayerMat.register(SNOW_LAYER_7);
   SnowLayerMat.register(SNOW_LAYER_8);
 }
Beispiel #3
0
 @Override
 public SnowLayerMat[] types() {
   return SnowLayerMat.snowLayerTypes();
 }
Beispiel #4
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 SnowLayerMat element) {
   byID.put((byte) element.getType(), element);
   byName.put(element.getTypeName(), element);
 }