001package net.tnemc.item.component.helper; 002/* 003 * The New Item Library 004 * Copyright (C) 2022 - 2025 Daniel "creatorfromhell" Vidmar 005 * 006 * This program is free software; you can redistribute it and/or 007 * modify it under the terms of the GNU Lesser General Public 008 * License as published by the Free Software Foundation; either 009 * version 3 of the License, or (at your option) any later version. 010 * 011 * This program is distributed in the hope that it will be useful, 012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 014 * Lesser General Public License for more details. 015 * 016 * You should have received a copy of the GNU Lesser General Public License 017 * along with this program; if not, write to the Free Software Foundation, 018 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 019 */ 020 021import java.util.ArrayList; 022 023/** 024 * PatternData 025 * 026 * @author creatorfromhell 027 * @since 0.2.0.0 028 */ 029public class PatternData { 030 031 protected String color; 032 protected String pattern; 033 034 public PatternData(final String color, final String pattern) { 035 036 this.color = color; 037 this.pattern = pattern; 038 } 039 040 public String getColor() { 041 042 return color; 043 } 044 045 public void setColor(final String color) { 046 047 this.color = color; 048 } 049 050 public String getPattern() { 051 052 return pattern; 053 } 054 055 public void setPattern(final String pattern) { 056 057 this.pattern = pattern; 058 } 059 060 @Override 061 public PatternData clone() throws CloneNotSupportedException { 062 return new PatternData(this.color, this.pattern); 063 } 064}