mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-27 13:15:28 +01:00
Added nullable annotation to Island#getCenter
This commit is contained in:
parent
38f088bb35
commit
962bc50aaa
@ -1,17 +1,8 @@
|
|||||||
package world.bentobox.bentobox.database.objects;
|
package world.bentobox.bentobox.database.objects;
|
||||||
|
|
||||||
import java.util.Date;
|
import com.google.common.collect.ImmutableSet;
|
||||||
import java.util.EnumMap;
|
import com.google.common.collect.ImmutableSet.Builder;
|
||||||
import java.util.HashMap;
|
import com.google.gson.annotations.Expose;
|
||||||
import java.util.HashSet;
|
|
||||||
import java.util.LinkedList;
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
import java.util.Map.Entry;
|
|
||||||
import java.util.Set;
|
|
||||||
import java.util.UUID;
|
|
||||||
import java.util.stream.Collectors;
|
|
||||||
|
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.Location;
|
import org.bukkit.Location;
|
||||||
import org.bukkit.World;
|
import org.bukkit.World;
|
||||||
@ -20,11 +11,6 @@ import org.bukkit.entity.Player;
|
|||||||
import org.bukkit.util.Vector;
|
import org.bukkit.util.Vector;
|
||||||
import org.eclipse.jdt.annotation.NonNull;
|
import org.eclipse.jdt.annotation.NonNull;
|
||||||
import org.eclipse.jdt.annotation.Nullable;
|
import org.eclipse.jdt.annotation.Nullable;
|
||||||
|
|
||||||
import com.google.common.collect.ImmutableSet;
|
|
||||||
import com.google.common.collect.ImmutableSet.Builder;
|
|
||||||
import com.google.gson.annotations.Expose;
|
|
||||||
|
|
||||||
import world.bentobox.bentobox.BentoBox;
|
import world.bentobox.bentobox.BentoBox;
|
||||||
import world.bentobox.bentobox.api.configuration.WorldSettings;
|
import world.bentobox.bentobox.api.configuration.WorldSettings;
|
||||||
import world.bentobox.bentobox.api.flags.Flag;
|
import world.bentobox.bentobox.api.flags.Flag;
|
||||||
@ -39,6 +25,18 @@ import world.bentobox.bentobox.managers.RanksManager;
|
|||||||
import world.bentobox.bentobox.util.Pair;
|
import world.bentobox.bentobox.util.Pair;
|
||||||
import world.bentobox.bentobox.util.Util;
|
import world.bentobox.bentobox.util.Util;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
import java.util.EnumMap;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.HashSet;
|
||||||
|
import java.util.LinkedList;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.Map.Entry;
|
||||||
|
import java.util.Set;
|
||||||
|
import java.util.UUID;
|
||||||
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Stores all the info about an island
|
* Stores all the info about an island
|
||||||
* Managed by IslandsManager
|
* Managed by IslandsManager
|
||||||
@ -193,6 +191,7 @@ public class Island implements DataObject {
|
|||||||
* Returns a clone of the location of the center of this island.
|
* Returns a clone of the location of the center of this island.
|
||||||
* @return clone of the center Location
|
* @return clone of the center Location
|
||||||
*/
|
*/
|
||||||
|
@Nullable
|
||||||
public Location getCenter(){
|
public Location getCenter(){
|
||||||
return center == null ? null : center.clone();
|
return center == null ? null : center.clone();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user