Interface ConsumableTeleportRandomly
- All Superinterfaces:
ConfigurationSerializable
,ConsumableEffect
Represent a random teleport when an item is consumed.
-
Method Summary
Modifier and TypeMethodDescriptionfloat
Gets the diameter that the consumer is teleported within.void
setDiameter
(float diameter) Sets the diameter that the consumer is teleported within.Methods inherited from interface org.bukkit.configuration.serialization.ConfigurationSerializable
serialize
-
Method Details
-
getDiameter
float getDiameter()Gets the diameter that the consumer is teleported within.- Returns:
- the diameter
-
setDiameter
void setDiameter(float diameter) Sets the diameter that the consumer is teleported within.- Parameters:
diameter
- new diameter
-