Package me.deecaad.core.file.serializers
Class RandomVectorProvider
java.lang.Object
me.deecaad.core.file.serializers.RandomVectorProvider
- All Implemented Interfaces:
VectorProvider
Returns a random vector with a specified length between min and max.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull org.bukkit.util.Vectorprovide(@Nullable org.joml.Quaterniond localTransform) Returns the vector, as specified by the implementing class.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface me.deecaad.core.file.serializers.VectorProvider
provide
-
Constructor Details
-
RandomVectorProvider
public RandomVectorProvider(double min, double max)
-
-
Method Details
-
provide
@NotNull public @NotNull org.bukkit.util.Vector provide(@Nullable @Nullable org.joml.Quaterniond localTransform) Description copied from interface:VectorProviderReturns the vector, as specified by the implementing class.- Specified by:
providein interfaceVectorProvider- Parameters:
localTransform- The local transform to apply to the vector. This can be null.- Returns:
- the vector.
-