protected StainedGlassMat(final DyeColor color) { super( STAINED_GLASS_WHITE.name(), STAINED_GLASS_WHITE.ordinal(), STAINED_GLASS_WHITE.getMinecraftId(), color.name(), (short) color.getBlockFlag(), STAINED_GLASS_WHITE.getHardness(), STAINED_GLASS_WHITE.getBlastResistance()); this.color = color; }
/** * Returns one of StainedGlass sub-type based on {@link DyeColor}. It will never return null; * * @param color color of StainedGlass * @return sub-type of StainedGlass */ public static StainedGlassMat getStainedGlass(final DyeColor color) { return getByID(color.getBlockFlag()); }
@Override public StainedGlassMat getColor(final DyeColor color) { return getByID(color.getBlockFlag()); }