Package net.minestom.server.particle
Class ParticleCreator
java.lang.Object
net.minestom.server.particle.ParticleCreator
public class ParticleCreator
extends java.lang.Object
Small utils class to create particle packet
-
Constructor Summary
Constructors Constructor Description ParticleCreator()
-
Method Summary
Modifier and Type Method Description static ParticlePacket
createParticlePacket(Particle particle, boolean distance, double x, double y, double z, float offsetX, float offsetY, float offsetZ, float particleData, int count, java.util.function.Consumer<BinaryWriter> dataWriter)
static ParticlePacket
createParticlePacket(Particle particle, double x, double y, double z, float offsetX, float offsetY, float offsetZ, int count)
-
Constructor Details
-
ParticleCreator
public ParticleCreator()
-
-
Method Details
-
createParticlePacket
public static ParticlePacket createParticlePacket(Particle particle, boolean distance, double x, double y, double z, float offsetX, float offsetY, float offsetZ, float particleData, int count, java.util.function.Consumer<BinaryWriter> dataWriter) -
createParticlePacket
public static ParticlePacket createParticlePacket(Particle particle, double x, double y, double z, float offsetX, float offsetY, float offsetZ, int count)
-