Interface ParticleTypeSculkChargeMotion


public interface ParticleTypeSculkChargeMotion

Class used to represent sculk charge particle type that takes a roll parameter.

It provides a non-reflective of method overloads to construct ParticleTypeMotion with selected roll.

All of methods does not validate parameters in any way.

IMPORTANT NOTE: All methods annotated with Shared annotation caches and returns exactly one and the same instance with changed state between method calls. For an independent copy of returned instances, check detachCopy methods on them.

See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Checks if this particle is supported by this Spigot version.
    roll(double roll)
    Selects roll angle this particle should be rotated.
  • Method Details

    • roll

      ParticleTypeMotion roll(double roll)

      Selects roll angle this particle should be rotated. An angle is in radians and will rotate particle clockwise

      Parameters are not validated in any way.

      This method is overridden by dynamically generated subclasses.

      Parameters:
      roll - angle in radians by which to rotate particle clockwise.
      Returns:
      a valid ParticleTypeMotion object with selected roll angle.
    • isPresent

      boolean isPresent()

      Checks if this particle is supported by this Spigot version.

      This method is overridden by dynamically generated subclasses.

      Returns:
      true if this particle is supported by this Spigot version, false otherwise.