Class S2APacketParticles
- java.lang.Object
-
- net.minecraft.network.play.server.S2APacketParticles
-
- All Implemented Interfaces:
Packet<INetHandlerPlayClient>
public class S2APacketParticles extends java.lang.Object implements Packet<INetHandlerPlayClient>
+ This portion of EaglercraftX contains deobfuscated Minecraft 1.8 source code. Minecraft 1.8.8 bytecode is (c) 2015 Mojang AB. "Do not distribute!" Mod Coder Pack v9.18 deobfuscation configs are (c) Copyright by the MCP Team EaglercraftX 1.8 patch files are (c) 2022-2023 LAX1DUDE. All Rights Reserved. WITH THE EXCEPTION OF PATCH FILES, MINIFIED JAVASCRIPT, AND ALL FILES NORMALLY FOUND IN AN UNMODIFIED MINECRAFT RESOURCE PACK, YOU ARE NOT ALLOWED TO SHARE, DISTRIBUTE, OR REPURPOSE ANY FILE USED BY OR PRODUCED BY THE SOFTWARE IN THIS REPOSITORY WITHOUT PRIOR PERMISSION FROM THE PROJECT AUTHOR. NOT FOR COMMERCIAL OR MALICIOUS USE (please read the 'LICENSE' file this repo's root directory for more info)
-
-
Field Summary
Fields Modifier and Type Field Description boolean
longDistance
int[]
particleArguments
int
particleCount
float
particleSpeed
EnumParticleTypes
particleType
float
xCoord
float
xOffset
float
yCoord
float
yOffset
float
zCoord
float
zOffset
-
Constructor Summary
Constructors Constructor Description S2APacketParticles()
S2APacketParticles(EnumParticleTypes particleTypeIn, boolean longDistanceIn, float x, float y, float z, float xOffsetIn, float yOffset, float zOffset, float particleSpeedIn, int particleCountIn, int... particleArgumentsIn)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int[]
getParticleArgs()
+ Gets the particle arguments.int
getParticleCount()
+ Gets the amount of particles to spawnfloat
getParticleSpeed()
+ Gets the speed of the particle animation (used in client side rendering).EnumParticleTypes
getParticleType()
double
getXCoordinate()
+ Gets the x coordinate to spawn the particle.float
getXOffset()
+ Gets the x coordinate offset for the particle.double
getYCoordinate()
+ Gets the y coordinate to spawn the particle.float
getYOffset()
+ Gets the y coordinate offset for the particle.double
getZCoordinate()
+ Gets the z coordinate to spawn the particle.float
getZOffset()
+ Gets the z coordinate offset for the particle.boolean
isLongDistance()
void
processPacket(INetHandlerPlayClient inethandlerplayclient)
+ Passes this Packet on to the NetHandler for processing.void
readPacketData(PacketBuffer parPacketBuffer)
+ Reads the raw packet data from the data stream.void
writePacketData(PacketBuffer parPacketBuffer)
+ Writes the raw packet data to the data stream.
-
-
-
Field Detail
-
particleType
public EnumParticleTypes particleType
-
xCoord
public float xCoord
-
yCoord
public float yCoord
-
zCoord
public float zCoord
-
xOffset
public float xOffset
-
yOffset
public float yOffset
-
zOffset
public float zOffset
-
particleSpeed
public float particleSpeed
-
particleCount
public int particleCount
-
longDistance
public boolean longDistance
-
particleArguments
public int[] particleArguments
-
-
Constructor Detail
-
S2APacketParticles
public S2APacketParticles()
-
S2APacketParticles
public S2APacketParticles(EnumParticleTypes particleTypeIn, boolean longDistanceIn, float x, float y, float z, float xOffsetIn, float yOffset, float zOffset, float particleSpeedIn, int particleCountIn, int... particleArgumentsIn)
-
-
Method Detail
-
readPacketData
public void readPacketData(PacketBuffer parPacketBuffer) throws java.io.IOException
+ Reads the raw packet data from the data stream.- Specified by:
readPacketData
in interfacePacket<INetHandlerPlayClient>
- Throws:
java.io.IOException
-
writePacketData
public void writePacketData(PacketBuffer parPacketBuffer) throws java.io.IOException
+ Writes the raw packet data to the data stream.- Specified by:
writePacketData
in interfacePacket<INetHandlerPlayClient>
- Throws:
java.io.IOException
-
getParticleType
public EnumParticleTypes getParticleType()
-
isLongDistance
public boolean isLongDistance()
-
getXCoordinate
public double getXCoordinate()
+ Gets the x coordinate to spawn the particle.
-
getYCoordinate
public double getYCoordinate()
+ Gets the y coordinate to spawn the particle.
-
getZCoordinate
public double getZCoordinate()
+ Gets the z coordinate to spawn the particle.
-
getXOffset
public float getXOffset()
+ Gets the x coordinate offset for the particle. The particle may use the offset for particle spread.
-
getYOffset
public float getYOffset()
+ Gets the y coordinate offset for the particle. The particle may use the offset for particle spread.
-
getZOffset
public float getZOffset()
+ Gets the z coordinate offset for the particle. The particle may use the offset for particle spread.
-
getParticleSpeed
public float getParticleSpeed()
+ Gets the speed of the particle animation (used in client side rendering).
-
getParticleCount
public int getParticleCount()
+ Gets the amount of particles to spawn
-
getParticleArgs
public int[] getParticleArgs()
+ Gets the particle arguments. Some particles rely on block and/or item ids and sometimes metadata ids to color or texture the particle.
-
processPacket
public void processPacket(INetHandlerPlayClient inethandlerplayclient)
+ Passes this Packet on to the NetHandler for processing.- Specified by:
processPacket
in interfacePacket<INetHandlerPlayClient>
-
-