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()); }
/** * 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; }