public class MovementEffectPacket extends java.lang.Object implements BedrockPacket
| Constructor and Description |
|---|
MovementEffectPacket() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canEqual(java.lang.Object other) |
MovementEffectPacket |
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) |
int |
getDuration() |
MovementEffectType |
getEffectType() |
long |
getEntityRuntimeId() |
BedrockPacketType |
getPacketType() |
long |
getTick() |
org.cloudburstmc.protocol.common.PacketSignal |
handle(BedrockPacketHandler handler) |
int |
hashCode() |
void |
setDuration(int duration) |
void |
setEffectType(MovementEffectType effectType) |
void |
setEntityRuntimeId(long entityRuntimeId) |
void |
setTick(long tick) |
java.lang.String |
toString() |
public org.cloudburstmc.protocol.common.PacketSignal handle(BedrockPacketHandler handler)
handle in interface BedrockPacketpublic BedrockPacketType getPacketType()
getPacketType in interface BedrockPacketpublic MovementEffectPacket clone()
BedrockPacketUnsupportedOperationException if the packet implements ReferenceCountedclone in interface BedrockPacketclone in class java.lang.Objectpublic long getEntityRuntimeId()
public MovementEffectType getEffectType()
public int getDuration()
public long getTick()
public void setEntityRuntimeId(long entityRuntimeId)
public void setEffectType(MovementEffectType effectType)
public void setDuration(int duration)
public void setTick(long tick)
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