public class CameraShakePacket extends java.lang.Object implements BedrockPacket
No known uses yet.
| Constructor and Description |
|---|
CameraShakePacket() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canEqual(java.lang.Object other) |
CameraShakePacket |
clone()
Creates a new instance of this packet using Object.clone()
Will throw a
UnsupportedOperationException if the packet implements ReferenceCounted |
boolean |
equals(java.lang.Object o) |
float |
getDuration()
Amount of time to shake the player's camera.
|
float |
getIntensity()
Intensity to shake the player's camera view.
|
BedrockPacketType |
getPacketType() |
CameraShakeAction |
getShakeAction() |
CameraShakeType |
getShakeType() |
org.cloudburstmc.protocol.common.PacketSignal |
handle(BedrockPacketHandler handler) |
int |
hashCode() |
void |
setDuration(float duration)
Amount of time to shake the player's camera.
|
void |
setIntensity(float intensity)
Intensity to shake the player's camera view.
|
void |
setShakeAction(CameraShakeAction shakeAction) |
void |
setShakeType(CameraShakeType shakeType) |
java.lang.String |
toString() |
public org.cloudburstmc.protocol.common.PacketSignal handle(BedrockPacketHandler handler)
handle in interface BedrockPacketpublic BedrockPacketType getPacketType()
getPacketType in interface BedrockPacketpublic CameraShakePacket clone()
BedrockPacketUnsupportedOperationException if the packet implements ReferenceCountedclone in interface BedrockPacketclone in class java.lang.Objectpublic float getIntensity()
public float getDuration()
public CameraShakeType getShakeType()
public CameraShakeAction getShakeAction()
public void setIntensity(float intensity)
intensity - shake intensitypublic void setDuration(float duration)
duration - seconds to shakepublic void setShakeType(CameraShakeType shakeType)
public void setShakeAction(CameraShakeAction shakeAction)
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectprotected boolean canEqual(java.lang.Object other)
public int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object