Package dev.demeng.pluginbase.model
Class Point
java.lang.Object
dev.demeng.pluginbase.model.Point
- All Implemented Interfaces:
YamlSerializable
An immutable and serializable Location object, including the yaw and pitch.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull Pointdeserialize(@NotNull org.bukkit.configuration.ConfigurationSection section) static @NotNull Pointof(@NotNull org.bukkit.Location loc) voidserialize(@NotNull org.bukkit.configuration.ConfigurationSection section) Serializes the object into the configuration section.@NotNull org.bukkit.LocationConverts the point to a BukkitLocation.
-
Constructor Details
-
Point
public Point()
-
-
Method Details
-
of
-
serialize
public void serialize(@NotNull @NotNull org.bukkit.configuration.ConfigurationSection section) Description copied from interface:YamlSerializableSerializes the object into the configuration section. The configuration file is not saved after serialization.- Specified by:
serializein interfaceYamlSerializable- Parameters:
section- The section the object will be serialized into
-
deserialize
@NotNull public static @NotNull Point deserialize(@NotNull @NotNull org.bukkit.configuration.ConfigurationSection section) -
toLocation
@NotNull public @NotNull org.bukkit.Location toLocation()Converts the point to a BukkitLocation.- Returns:
- The Bukkit Location
-