public class BookEditPacket extends java.lang.Object implements BedrockPacket
| Modifier and Type | Class and Description |
|---|---|
static class |
BookEditPacket.Action |
| Constructor and Description |
|---|
BookEditPacket() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canEqual(java.lang.Object other) |
BookEditPacket |
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) |
BookEditPacket.Action |
getAction() |
net.kyori.adventure.text.Component |
getAuthor() |
int |
getInventorySlot() |
BedrockPacketType |
getPacketType() |
int |
getPageNumber() |
java.lang.String |
getPhotoName() |
int |
getSecondaryPageNumber() |
net.kyori.adventure.text.Component |
getText() |
net.kyori.adventure.text.Component |
getTitle() |
java.lang.String |
getXuid() |
org.cloudburstmc.protocol.common.PacketSignal |
handle(BedrockPacketHandler handler) |
int |
hashCode() |
void |
setAction(BookEditPacket.Action action) |
void |
setAuthor(net.kyori.adventure.text.Component author) |
void |
setInventorySlot(int inventorySlot) |
void |
setPageNumber(int pageNumber) |
void |
setPhotoName(java.lang.String photoName) |
void |
setSecondaryPageNumber(int secondaryPageNumber) |
void |
setText(net.kyori.adventure.text.Component text) |
void |
setTitle(net.kyori.adventure.text.Component title) |
void |
setXuid(java.lang.String xuid) |
java.lang.String |
toString() |
public final org.cloudburstmc.protocol.common.PacketSignal handle(BedrockPacketHandler handler)
handle in interface BedrockPacketpublic BedrockPacketType getPacketType()
getPacketType in interface BedrockPacketpublic BookEditPacket clone()
BedrockPacketUnsupportedOperationException if the packet implements ReferenceCountedclone in interface BedrockPacketclone in class java.lang.Objectpublic BookEditPacket.Action getAction()
public int getInventorySlot()
public int getPageNumber()
public int getSecondaryPageNumber()
public net.kyori.adventure.text.Component getText()
public java.lang.String getPhotoName()
public net.kyori.adventure.text.Component getTitle()
public net.kyori.adventure.text.Component getAuthor()
public java.lang.String getXuid()
public void setAction(BookEditPacket.Action action)
public void setInventorySlot(int inventorySlot)
public void setPageNumber(int pageNumber)
public void setSecondaryPageNumber(int secondaryPageNumber)
public void setText(net.kyori.adventure.text.Component text)
public void setPhotoName(java.lang.String photoName)
public void setTitle(net.kyori.adventure.text.Component title)
public void setAuthor(net.kyori.adventure.text.Component author)
public void setXuid(java.lang.String xuid)
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