public class ScoreboardScore extends DefinedPacket
| Constructor and Description |
|---|
ScoreboardScore() |
ScoreboardScore(String itemName,
byte action,
String scoreName,
int value) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
byte |
getAction()
0 = create / update, 1 = remove.
|
String |
getItemName() |
String |
getScoreName() |
int |
getValue() |
void |
handle(AbstractPacketHandler handler) |
int |
hashCode() |
void |
read(io.netty.buffer.ByteBuf buf,
ProtocolConstants.Direction direction,
int protocolVersion) |
void |
setAction(byte action)
0 = create / update, 1 = remove.
|
void |
setItemName(String itemName) |
void |
setScoreName(String scoreName) |
void |
setValue(int value) |
String |
toString() |
void |
write(io.netty.buffer.ByteBuf buf,
ProtocolConstants.Direction direction,
int protocolVersion) |
read, readArray, readArray, readNBT, readString, readString, readStringArray, readUUID, readUUIDIntArray, readVarInt, readVarInt, readVarIntArray, readVarShort, toArray, write, writeArray, writeNBT, writeString, writeString, writeStringArray, writeUUID, writeUUIDIntArray, writeVarInt, writeVarShortpublic void read(io.netty.buffer.ByteBuf buf,
ProtocolConstants.Direction direction,
int protocolVersion)
read in class DefinedPacketpublic void write(io.netty.buffer.ByteBuf buf,
ProtocolConstants.Direction direction,
int protocolVersion)
write in class DefinedPacketpublic void handle(AbstractPacketHandler handler) throws Exception
handle in class DefinedPacketExceptionpublic String getItemName()
public byte getAction()
public String getScoreName()
public int getValue()
public void setItemName(String itemName)
public void setAction(byte action)
public void setScoreName(String scoreName)
public void setValue(int value)
public String toString()
toString in class DefinedPacketpublic boolean equals(Object o)
equals in class DefinedPacketprotected boolean canEqual(Object other)
public int hashCode()
hashCode in class DefinedPacketCopyright © 2015–2020 WaterfallMC. All rights reserved.