Interface ParticleTypeBlockMotion
Class used to represent block particle type that needs a block type.
It provides a non-reflective of method overloads
to construct ParticleTypeMotion with selected block 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 block) Selects a block this particle should represents.of(org.bukkit.Material block, byte meta) Selects a block this particle should represents.of(org.bukkit.Material block, int meta) Selects a block this particle should represents.
-
Method Details
-
of
Selects a block this particle should represents.
Parameters are not validated in any way.
- Parameters:
block- aMaterialobject representing desired block type.- Returns:
- a valid shared
ParticleTypeMotionobject with selected block type.
-
of
Selects a block this particle should represents.
Parameters are not validated in any way.
- Parameters:
block- aMaterialobject representing desired block type.meta- a metadata used by certain blocks (it is ignored since 1.13).- Returns:
- a valid shared
ParticleTypeMotionobject with selected block type.
-
of
Selects a block this particle should represents.
Parameters are not validated in any way.
This method is overridden by dynamically generated subclasses.
- Parameters:
block- aMaterialobject representing desired block type.meta- a metadata used by certain blocks (it is ignored since 1.13).- Returns:
- a valid shared
ParticleTypeMotionobject with selected block 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.
-