Interface ConsumableTeleportRandomly
- All Superinterfaces:
ConfigurationSerializable, ConsumableEffect
Represent a random teleport when an item is consumed.
-
Method Summary
Modifier and TypeMethodDescriptionfloatGets the diameter that the consumer is teleported within.booleanGets whether directional particles will be displayed.voidsetDiameter(float diameter) Sets the diameter that the consumer is teleported within.voidsetDirectionalParticles(boolean directionalParticles) Sets whether directional particles will be displayed.Methods inherited from interface 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
-
isDirectionalParticles
boolean isDirectionalParticles()Gets whether directional particles will be displayed.- Returns:
- whether to display particles
-
setDirectionalParticles
void setDirectionalParticles(boolean directionalParticles) Sets whether directional particles will be displayed.- Parameters:
directionalParticles- whether to display particles
-