Exemplo n.º 1
0
 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;
 }
Exemplo n.º 2
0
 /**
  * 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());
 }
Exemplo n.º 3
0
 @Override
 public StainedGlassMat getColor(final DyeColor color) {
   return getByID(color.getBlockFlag());
 }