public class PlaySound extends DefinedPacket
Modifier and Type | Field and Description |
---|---|
static BiFunction<String,Integer,String> |
NAME_FUNCTION |
Constructor and Description |
---|
PlaySound() |
PlaySound(String name,
int x,
int y,
int z,
float volume,
int pitch) |
PlaySound(String name,
int category,
int x,
int y,
int z,
float volume,
float pitch) |
PlaySound(String name,
int category,
int x,
int y,
int z,
float volume,
int pitch) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(Object other) |
static PlaySound |
create(String name,
int category,
int x,
int y,
int z,
float volume,
float pitch) |
static PlaySound |
create1_8(String name,
int x,
int y,
int z,
float volume,
int legacyPitch) |
static PlaySound |
create1_9(String name,
int category,
int x,
int y,
int z,
float volume,
int legacyPitch) |
boolean |
equals(Object o) |
int |
getCategory() |
int |
getLegacyPitch() |
String |
getName() |
float |
getPitch() |
float |
getVolume() |
int |
getX() |
int |
getY() |
int |
getZ() |
void |
handle(AbstractPacketHandler handler) |
int |
hashCode() |
void |
read(io.netty.buffer.ByteBuf buf,
ProtocolConstants.Direction direction,
int protocolVersion) |
void |
setCategory(int category) |
void |
setLegacyPitch(int legacyPitch) |
void |
setName(String name) |
void |
setPitch(float pitch) |
void |
setVolume(float volume) |
void |
setX(int x) |
void |
setY(int y) |
void |
setZ(int z) |
String |
toString() |
void |
write(io.netty.buffer.ByteBuf buf,
ProtocolConstants.Direction direction,
int protocolVersion) |
expectedMaxLength, expectedMinLength, read, readArray, readArray, readProperties, readPublicKey, readString, readString, readStringArray, readTag, readUUID, readVarInt, readVarInt, readVarIntArray, readVarShort, toArray, write, writeArray, writeProperties, writePublicKey, writeString, writeString, writeStringArray, writeTag, writeUUID, writeVarInt, writeVarShort
public static final BiFunction<String,Integer,String> NAME_FUNCTION
public PlaySound(String name, int category, int x, int y, int z, float volume, float pitch)
public PlaySound(String name, int category, int x, int y, int z, float volume, int pitch)
public PlaySound(String name, int x, int y, int z, float volume, int pitch)
public PlaySound()
public static PlaySound create1_8(String name, int x, int y, int z, float volume, int legacyPitch)
public static PlaySound create1_9(String name, int category, int x, int y, int z, float volume, int legacyPitch)
public static PlaySound create(String name, int category, int x, int y, int z, float volume, float pitch)
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 int getX()
public int getY()
public int getZ()
public int getCategory()
public int getLegacyPitch()
public float getVolume()
public float getPitch()
public void setName(String name)
public void setX(int x)
public void setY(int y)
public void setZ(int z)
public void setCategory(int category)
public void setLegacyPitch(int legacyPitch)
public void setVolume(float volume)
public void setPitch(float pitch)
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 © 2019–2022. All rights reserved.