Interface ConsumableTeleportRandomly

All Superinterfaces:
ConfigurationSerializable, ConsumableEffect

public interface ConsumableTeleportRandomly extends ConsumableEffect
Represent a random teleport when an item is consumed.
  • Method Summary

    Modifier and Type
    Method
    Description
    float
    Gets the diameter that the consumer is teleported within.
    boolean
    Gets whether directional particles will be displayed.
    void
    setDiameter(float diameter)
    Sets the diameter that the consumer is teleported within.
    void
    setDirectionalParticles(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