public class ScoreboardObjective extends DefinedPacket
| Modifier and Type | Class and Description |
|---|---|
static class |
ScoreboardObjective.HealthDisplay |
| Constructor and Description |
|---|
ScoreboardObjective() |
ScoreboardObjective(String name,
Either<String,BaseComponent> value,
ScoreboardObjective.HealthDisplay type,
byte action,
NumberFormat numberFormat) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
byte |
getAction()
0 to create, 1 to remove, 2 to update display text.
|
String |
getName() |
NumberFormat |
getNumberFormat() |
ScoreboardObjective.HealthDisplay |
getType() |
Either<String,BaseComponent> |
getValue() |
void |
handle(AbstractPacketHandler handler) |
int |
hashCode() |
void |
read(io.netty.buffer.ByteBuf buf,
ProtocolConstants.Direction direction,
int protocolVersion) |
void |
setAction(byte action)
0 to create, 1 to remove, 2 to update display text.
|
void |
setName(String name) |
void |
setNumberFormat(NumberFormat numberFormat) |
void |
setType(ScoreboardObjective.HealthDisplay type) |
void |
setValue(Either<String,BaseComponent> value) |
String |
toString() |
void |
write(io.netty.buffer.ByteBuf buf,
ProtocolConstants.Direction direction,
int protocolVersion) |
nextProtocol, read, read, readArray, readArray, readBaseComponent, readBaseComponent, readComponentStyle, readEitherBaseComponent, readEnumSet, readFixedBitSet, readNullable, readNumberFormat, readProperties, readPublicKey, readString, readString, readStringArray, readTag, readUUID, readVarInt, readVarInt, readVarIntArray, readVarShort, toArray, write, write, writeArray, writeBaseComponent, writeComponentStyle, writeEitherBaseComponent, writeEnumSet, writeFixedBitSet, writeNullable, writeNumberFormat, writeProperties, writePublicKey, writeString, writeString, writeStringArray, writeTag, writeUUID, writeVarInt, writeVarShortpublic ScoreboardObjective()
public ScoreboardObjective(String name, Either<String,BaseComponent> value, ScoreboardObjective.HealthDisplay type, byte action, NumberFormat numberFormat)
public 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 getName()
public Either<String,BaseComponent> getValue()
public ScoreboardObjective.HealthDisplay getType()
public byte getAction()
public NumberFormat getNumberFormat()
public void setName(String name)
public void setValue(Either<String,BaseComponent> value)
public void setType(ScoreboardObjective.HealthDisplay type)
public void setAction(byte action)
public void setNumberFormat(NumberFormat numberFormat)
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 © 2012–2024 SpigotMC. All rights reserved.