Class ParticleVibrationData
java.lang.Object
com.github.retrooper.packetevents.protocol.particle.data.ParticleData
com.github.retrooper.packetevents.protocol.particle.data.ParticleVibrationData
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionParticleVibrationData
(PositionSource source, int ticks) ParticleVibrationData
(@Nullable Vector3i startingPos, int entityId, float entityEyeHeight, int ticks) ParticleVibrationData
(@Nullable Vector3i startingPos, int entityId, int ticks) ParticleVibrationData
(@Nullable Vector3i startingPos, PositionSource source, int ticks) ParticleVibrationData
(@Nullable Vector3i startingPos, Vector3i blockPosition, int ticks) -
Method Summary
Modifier and TypeMethodDescriptionstatic ParticleVibrationData
decode
(NBTCompound compound, ClientVersion version) static void
encode
(ParticleVibrationData data, ClientVersion version, NBTCompound compound) int
getTicks()
getType()
Deprecated.boolean
isEmpty()
static ParticleVibrationData
read
(PacketWrapper<?> wrapper) void
setBlockPosition
(Vector3i blockPosition) void
setEntityEyeHeight
(float offsetY) void
setEntityEyeHeight
(Float offsetY) void
setEntityId
(int entityId) void
setStartingPosition
(Vector3i startingPosition) void
setTicks
(int ticks) static void
write
(PacketWrapper<?> wrapper, ParticleVibrationData data) Methods inherited from class com.github.retrooper.packetevents.protocol.particle.data.ParticleData
emptyData
-
Constructor Details
-
ParticleVibrationData
-
ParticleVibrationData
-
ParticleVibrationData
public ParticleVibrationData(@Nullable @Nullable Vector3i startingPos, int entityId, float entityEyeHeight, int ticks) -
ParticleVibrationData
-
ParticleVibrationData
public ParticleVibrationData(@Nullable @Nullable Vector3i startingPos, PositionSource source, int ticks)
-
-
Method Details
-
read
-
write
-
decode
-
encode
-
getStartingPosition
-
setStartingPosition
-
getType
Deprecated. -
getSourceType
-
getSource
-
getBlockPosition
-
setBlockPosition
-
getEntityId
-
setEntityId
public void setEntityId(int entityId) -
getEntityEyeHeight
-
setEntityEyeHeight
-
setEntityEyeHeight
public void setEntityEyeHeight(float offsetY) -
getTicks
public int getTicks() -
setTicks
public void setTicks(int ticks) -
isEmpty
public boolean isEmpty()- Overrides:
isEmpty
in classParticleData
-