20 package net.sf.gridarta.var.crossfire.model.maparchobject;
23 import org.jetbrains.annotations.NotNull;
24 import org.jetbrains.annotations.Nullable;
50 private final StringBuilder
loreText =
new StringBuilder();
62 private boolean template;
181 super(mapArchObject);
182 loreText.append(mapArchObject.loreText);
183 unique = mapArchObject.unique;
184 template = mapArchObject.template;
191 sky = mapArchObject.sky;
195 shopMin = mapArchObject.shopMin;
196 shopMax = mapArchObject.shopMax;
197 region = mapArchObject.region;
205 super.setState(mapArchObject);
206 setLore(mapArchObject.loreText.toString());
215 setSky(mapArchObject.sky);
240 if (this.unique ==
unique) {
261 if (this.
template ==
template) {
265 this.
template =
template;
304 final String trimmedRegion =
region.trim();
305 if (this.region.equals(trimmedRegion)) {
309 this.region = trimmedRegion;
328 if (this.backgroundMusic.equals(trimmedBackgroundMusic)) {
332 this.backgroundMusic = trimmedBackgroundMusic;
350 final String trimmedShopItems =
shopItems.trim();
351 if (this.shopItems.equals(trimmedShopItems)) {
355 this.shopItems = trimmedShopItems;
373 final String trimmedShopRace =
shopRace.trim();
374 if (this.shopRace.equals(trimmedShopRace)) {
565 if (this.sky ==
sky) {
577 public void addLore(@NotNull
final String text) {
578 if (text.isEmpty()) {
590 public void setLore(@NotNull
final String text) {
591 if (
loreText.toString().equals(text)) {
657 @SuppressWarnings(
"FloatingPointEquality")
659 public boolean equals(@Nullable
final Object obj) {
663 if (obj ==
null || obj.getClass() != getClass()) {