public class ParticleTypeBlock
extends java.lang.Object
Class used to represent block particle type that needs a block type.
It provides a non-reflective of method overloads
to construct ParticleType with selected block type.
All of methods does not validate parameters in any way.
ParticleType| Constructor and Description |
|---|
ParticleTypeBlock() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isValid()
Checks if this particle is supported by this Spigot version.
|
ParticleType |
of(org.bukkit.Material block)
Selects a block this particle should represents.
|
ParticleType |
of(org.bukkit.Material block,
byte meta)
Selects a block this particle should represents.
|
ParticleType |
of(org.bukkit.Material block,
int meta)
Selects a block this particle should represents.
|
public ParticleType of(org.bukkit.Material block)
Selects a block this particle should represents.
Parameters are not validated in any way.
block - a Material object representing
desired block type.ParticleType object with selected
block type.public ParticleType of(org.bukkit.Material block, int meta)
Selects a block this particle should represents.
Parameters are not validated in any way.
block - a Material object representing
desired block type.meta - a metadata used by certain blocks (it is
ignored since 1.13).ParticleType object with selected
block type.public ParticleType of(org.bukkit.Material block, byte meta)
Selects a block this particle should represents.
Parameters are not validated in any way.
This method is overridden by dynamically generated subclasses.
block - a Material object representing
desired block type.meta - a metadata used by certain blocks (it is
ignored since 1.13).ParticleType object with selected
block type.public boolean isValid()
Checks if this particle is supported by this Spigot version.
This method is overridden by dynamically generated subclasses.
Copyright © 2020. All Rights Reserved.