Class ClientboundExplodePacket
java.lang.Object
org.geysermc.mcprotocollib.protocol.packet.ingame.clientbound.level.ClientboundExplodePacket
- All Implemented Interfaces:
Packet,MinecraftPacket
-
Constructor Summary
ConstructorsConstructorDescriptionClientboundExplodePacket(double x, double y, double z, float radius, @NonNull List<org.cloudburstmc.math.vector.Vector3i> exploded, float pushX, float pushY, float pushZ, @NonNull Particle smallExplosionParticles, @NonNull Particle largeExplosionParticles, @NonNull ExplosionInteraction blockInteraction, @NonNull Sound explosionSound) ClientboundExplodePacket(io.netty.buffer.ByteBuf in, MinecraftCodecHelper helper) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanboolean@NonNull ExplosionInteraction@NonNull List<org.cloudburstmc.math.vector.Vector3i>@NonNull Sound@NonNull ParticlefloatgetPushX()floatgetPushY()floatgetPushZ()float@NonNull ParticledoublegetX()doublegetY()doublegetZ()inthashCode()voidserialize(io.netty.buffer.ByteBuf out, MinecraftCodecHelper helper) @NonNull StringtoString()@NonNull ClientboundExplodePacketwithBlockInteraction(@NonNull ExplosionInteraction blockInteraction) @NonNull ClientboundExplodePacketwithExploded(@NonNull List<org.cloudburstmc.math.vector.Vector3i> exploded) @NonNull ClientboundExplodePacketwithExplosionSound(@NonNull Sound explosionSound) @NonNull ClientboundExplodePacketwithLargeExplosionParticles(@NonNull Particle largeExplosionParticles) @NonNull ClientboundExplodePacketwithPushX(float pushX) @NonNull ClientboundExplodePacketwithPushY(float pushY) @NonNull ClientboundExplodePacketwithPushZ(float pushZ) @NonNull ClientboundExplodePacketwithRadius(float radius) @NonNull ClientboundExplodePacketwithSmallExplosionParticles(@NonNull Particle smallExplosionParticles) @NonNull ClientboundExplodePacketwithX(double x) @NonNull ClientboundExplodePacketwithY(double y) @NonNull ClientboundExplodePacketwithZ(double z) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.geysermc.mcprotocollib.network.packet.Packet
isPriority, isTerminal
-
Constructor Details
-
ClientboundExplodePacket
-
ClientboundExplodePacket
public ClientboundExplodePacket(double x, double y, double z, float radius, @NonNull @NonNull List<org.cloudburstmc.math.vector.Vector3i> exploded, float pushX, float pushY, float pushZ, @NonNull @NonNull Particle smallExplosionParticles, @NonNull @NonNull Particle largeExplosionParticles, @NonNull @NonNull ExplosionInteraction blockInteraction, @NonNull @NonNull Sound explosionSound)
-
-
Method Details
-
serialize
- Specified by:
serializein interfaceMinecraftPacket
-
getX
public double getX() -
getY
public double getY() -
getZ
public double getZ() -
getRadius
public float getRadius() -
getExploded
-
getPushX
public float getPushX() -
getPushY
public float getPushY() -
getPushZ
public float getPushZ() -
getSmallExplosionParticles
-
getLargeExplosionParticles
-
getBlockInteraction
-
getExplosionSound
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-
withX
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withY
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withZ
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withRadius
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withExploded
public @NonNull ClientboundExplodePacket withExploded(@NonNull @NonNull List<org.cloudburstmc.math.vector.Vector3i> exploded) - Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withPushX
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withPushY
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withPushZ
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withSmallExplosionParticles
public @NonNull ClientboundExplodePacket withSmallExplosionParticles(@NonNull @NonNull Particle smallExplosionParticles) - Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withLargeExplosionParticles
public @NonNull ClientboundExplodePacket withLargeExplosionParticles(@NonNull @NonNull Particle largeExplosionParticles) - Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withBlockInteraction
public @NonNull ClientboundExplodePacket withBlockInteraction(@NonNull @NonNull ExplosionInteraction blockInteraction) - Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withExplosionSound
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-