Interface ParticleTypeItemMotion
public interface ParticleTypeItemMotion
Class used to represent item particle type that needs an item type.
It provides a non-reflective of method overloads
to construct ParticleTypeMotion with selected item type.
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 TypeMethodDescriptionbooleanChecks if this particle is supported by this Spigot version.of(org.bukkit.Material item) Selects an item this particle should represents.
-
Method Details
-
of
Selects an item this particle should represents.
Parameters are not validated in any way.
This method is overridden by dynamically generated subclasses.
- Parameters:
item- aMaterialobject representing desired item type.- Returns:
- a valid
ParticleTypeMotionobject with selected item type.
-
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.
-