示例#1
0
 protected PlanksMat(final WoodTypeMat woodType) {
   super(
       PLANKS_OAK.name(),
       PLANKS_OAK.ordinal(),
       PLANKS_OAK.getMinecraftId(),
       woodType.name(),
       woodType.getPlanksMeta(),
       woodType,
       PLANKS_OAK.getHardness(),
       PLANKS_OAK.getBlastResistance());
 }
示例#2
0
 /**
  * Returns sub-type of {@link PlanksMat}, based on {@link WoodTypeMat}.
  *
  * @param type {@link WoodTypeMat} of Planks
  * @return sub-type of {@link PlanksMat}.
  */
 public static PlanksMat getPlanks(final WoodTypeMat type) {
   for (final PlanksMat mat : planksTypes()) {
     if (mat.getWoodType().ordinal() == type.ordinal()) {
       return mat;
     }
   }
   return null;
 }