mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-24 03:35:11 +01:00
Added nullability annotations to some Island's fields
This commit is contained in:
parent
962bc50aaa
commit
749b88669c
@ -52,11 +52,13 @@ public class Island implements DataObject {
|
|||||||
private boolean deleted = false;
|
private boolean deleted = false;
|
||||||
|
|
||||||
@Expose
|
@Expose
|
||||||
|
@NonNull
|
||||||
private String uniqueId = UUID.randomUUID().toString();
|
private String uniqueId = UUID.randomUUID().toString();
|
||||||
|
|
||||||
//// Island ////
|
//// Island ////
|
||||||
// The center of the island itself
|
// The center of the island itself
|
||||||
@Expose
|
@Expose
|
||||||
|
@Nullable
|
||||||
private Location center;
|
private Location center;
|
||||||
|
|
||||||
// Island range
|
// Island range
|
||||||
@ -77,6 +79,7 @@ public class Island implements DataObject {
|
|||||||
|
|
||||||
// Display name
|
// Display name
|
||||||
@Expose
|
@Expose
|
||||||
|
@Nullable
|
||||||
private String name;
|
private String name;
|
||||||
|
|
||||||
// Time parameters
|
// Time parameters
|
||||||
@ -87,7 +90,8 @@ public class Island implements DataObject {
|
|||||||
|
|
||||||
//// Team ////
|
//// Team ////
|
||||||
@Expose
|
@Expose
|
||||||
private @Nullable UUID owner;
|
@Nullable
|
||||||
|
private UUID owner;
|
||||||
|
|
||||||
@Expose
|
@Expose
|
||||||
private Map<UUID, Integer> members = new HashMap<>();
|
private Map<UUID, Integer> members = new HashMap<>();
|
||||||
|
Loading…
Reference in New Issue
Block a user