Interface ParticleOptions
- All Superinterfaces:
Wrapper
Opaque handle to NMS ParticleOptions.
Impl module wraps the real thing.
- Since:
- 2.0.0
-
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic ParticleOptionsReads Minecraft particle options into a wrapper.static ParticleOptionsof(ParticleTypes type) Creates a new ParticleOptions instance.static ParticleOptionsof(ParticleTypes type, @Nullable ParticleData data) Creates a new ParticleOptions instance.Methods inherited from interface Wrapper
asHandle, toMinecraft, unwrap
-
Method Details
-
of
Creates a new ParticleOptions instance.- Parameters:
type- the particle typedata- the particle data, can be null for simple particle types- Returns:
- a new ParticleOptions instance
- Since:
- 3.0.0
-
of
Creates a new ParticleOptions instance.- Parameters:
type- the particle type- Returns:
- a new ParticleOptions instance
- Since:
- 3.0.0
-
decode
Reads Minecraft particle options into a wrapper.- Parameters:
minecraftParticleOptions- the particle options to read- Returns:
- the wrapper for them
- Since:
- 3.3.0
-