public class VoiceSourceLine extends java.lang.Object implements SourceLine, PacketSerializable
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
icon |
protected java.util.UUID |
id |
protected java.lang.String |
name |
protected java.util.Set<MinecraftGameProfile> |
players |
static java.util.UUID |
PROXIMITY_ID |
static java.lang.String |
PROXIMITY_NAME |
protected java.lang.String |
translation |
protected int |
weight |
| Constructor and Description |
|---|
VoiceSourceLine(@NotNull java.lang.String name,
@NotNull java.lang.String translation,
@NotNull java.lang.String icon,
int weight,
@Nullable java.util.Set<MinecraftGameProfile> players) |
| Modifier and Type | Method and Description |
|---|---|
void |
deserialize(com.google.common.io.ByteArrayDataInput in) |
static java.util.UUID |
generateId(@NotNull java.lang.String name) |
@NotNull java.util.Collection<MinecraftGameProfile> |
getPlayers()
Gets the line's players
|
boolean |
hasPlayers()
Check if line can contain players
|
void |
serialize(com.google.common.io.ByteArrayDataOutput out) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetIcon, getId, getName, getTranslation, getWeightpublic static final java.lang.String PROXIMITY_NAME
public static final java.util.UUID PROXIMITY_ID
protected java.util.UUID id
protected java.lang.String name
protected java.lang.String translation
protected java.lang.String icon
protected int weight
protected java.util.Set<MinecraftGameProfile> players
public VoiceSourceLine(@NotNull
@NotNull java.lang.String name,
@NotNull
@NotNull java.lang.String translation,
@NotNull
@NotNull java.lang.String icon,
int weight,
@Nullable
@Nullable java.util.Set<MinecraftGameProfile> players)
public static java.util.UUID generateId(@NotNull
@NotNull java.lang.String name)
public void deserialize(com.google.common.io.ByteArrayDataInput in)
throws java.io.IOException
deserialize in interface PacketSerializablejava.io.IOExceptionpublic void serialize(com.google.common.io.ByteArrayDataOutput out)
throws java.io.IOException
serialize in interface PacketSerializablejava.io.IOExceptionpublic boolean hasPlayers()
SourceLinehasPlayers in interface SourceLine@NotNull public @NotNull java.util.Collection<MinecraftGameProfile> getPlayers()
SourceLinegetPlayers in interface SourceLine