public class ScoreboardObjective extends DefinedPacket
Modifier and Type | Class and Description |
---|---|
static class |
ScoreboardObjective.HealthDisplay |
Constructor and Description |
---|
ScoreboardObjective() |
ScoreboardObjective(String name,
String value,
ScoreboardObjective.HealthDisplay type,
byte action) |
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() |
ScoreboardObjective.HealthDisplay |
getType() |
String |
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 |
setType(ScoreboardObjective.HealthDisplay type) |
void |
setValue(String value) |
String |
toString() |
void |
write(io.netty.buffer.ByteBuf buf,
ProtocolConstants.Direction direction,
int protocolVersion) |
read, readArray, readArray, readString, readStringArray, readUUID, readVarInt, readVarInt, readVarIntArray, readVarShort, toArray, write, writeArray, writeString, writeStringArray, writeUUID, writeVarInt, writeVarShort
public ScoreboardObjective()
public ScoreboardObjective(String name, String value, ScoreboardObjective.HealthDisplay type, byte action)
public void read(io.netty.buffer.ByteBuf buf, ProtocolConstants.Direction direction, int protocolVersion)
read
in class DefinedPacket
public void write(io.netty.buffer.ByteBuf buf, ProtocolConstants.Direction direction, int protocolVersion)
write
in class DefinedPacket
public void handle(AbstractPacketHandler handler) throws Exception
handle
in class DefinedPacket
Exception
public String getName()
public String getValue()
public ScoreboardObjective.HealthDisplay getType()
public byte getAction()
public void setName(String name)
public void setValue(String value)
public void setType(ScoreboardObjective.HealthDisplay type)
public void setAction(byte action)
public String toString()
toString
in class DefinedPacket
public boolean equals(Object o)
equals
in class DefinedPacket
protected boolean canEqual(Object other)
public int hashCode()
hashCode
in class DefinedPacket
Copyright © 2012–2020 SpigotMC. All rights reserved.