2022-03-11 11:34:16 +01:00
|
|
|
package world.bentobox.warps.managers;
|
2019-06-27 02:30:11 +02:00
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
import org.bukkit.Material;
|
|
|
|
|
2020-01-29 02:11:23 +01:00
|
|
|
import com.google.gson.annotations.Expose;
|
|
|
|
|
2019-06-27 02:30:11 +02:00
|
|
|
/**
|
|
|
|
* Stores info on a warp sign
|
|
|
|
* @author tastybento
|
|
|
|
*
|
|
|
|
*/
|
2020-01-29 02:11:23 +01:00
|
|
|
public class SignCacheItem {
|
2021-01-09 20:19:35 +01:00
|
|
|
|
2020-01-29 02:11:23 +01:00
|
|
|
@Expose
|
2019-06-27 02:30:11 +02:00
|
|
|
private final List<String> signText;
|
2020-01-29 02:11:23 +01:00
|
|
|
@Expose
|
2019-06-27 02:30:11 +02:00
|
|
|
private final Material type;
|
|
|
|
/**
|
2021-08-09 03:09:28 +02:00
|
|
|
* @param signText sign text
|
|
|
|
* @param type material of sign
|
2019-06-27 02:30:11 +02:00
|
|
|
*/
|
2020-01-29 02:11:23 +01:00
|
|
|
public SignCacheItem(List<String> signText, Material type) {
|
2019-06-27 02:30:11 +02:00
|
|
|
this.signText = signText;
|
|
|
|
this.type = type;
|
|
|
|
}
|
2021-01-09 20:19:35 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* This sign is not real
|
|
|
|
*/
|
|
|
|
public SignCacheItem() {
|
|
|
|
this.signText = null;
|
|
|
|
this.type = null;
|
|
|
|
}
|
|
|
|
|
2019-06-27 02:30:11 +02:00
|
|
|
/**
|
|
|
|
* @return the signText
|
|
|
|
*/
|
|
|
|
public List<String> getSignText() {
|
|
|
|
return signText;
|
|
|
|
}
|
|
|
|
/**
|
|
|
|
* @return the type
|
|
|
|
*/
|
|
|
|
public Material getType() {
|
|
|
|
return type;
|
|
|
|
}
|
2021-01-09 20:19:35 +01:00
|
|
|
/**
|
|
|
|
* @return the isReal
|
|
|
|
*/
|
|
|
|
public boolean isReal() {
|
|
|
|
return getType() != null;
|
|
|
|
}
|
|
|
|
|
2019-06-27 02:30:11 +02:00
|
|
|
|
|
|
|
}
|