Package de.mrjulsen.dragnsounds.net.stc
Klasse SoundDataPacket
java.lang.Object
de.mrjulsen.dragnsounds.net.stc.SoundDataPacket
- Alle implementierten Schnittstellen:
de.mrjulsen.mcdragonlib.net.IPacketBase<SoundDataPacket>
,Comparable<SoundDataPacket>
public class SoundDataPacket
extends Object
implements de.mrjulsen.mcdragonlib.net.IPacketBase<SoundDataPacket>, Comparable<SoundDataPacket>
-
Konstruktorübersicht
KonstruktorBeschreibungSoundDataPacket
(long soundId, int index, int bufferSize, boolean hasNext, byte[] data) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungint
decode
(net.minecraft.network.FriendlyByteBuf buf) void
encode
(SoundDataPacket packet, net.minecraft.network.FriendlyByteBuf buf) int
byte[]
getData()
int
getIndex()
long
void
handle
(SoundDataPacket packet, Supplier<dev.architectury.networking.NetworkManager.PacketContext> contextSupplier) boolean
-
Konstruktordetails
-
SoundDataPacket
public SoundDataPacket() -
SoundDataPacket
public SoundDataPacket(long soundId, int index, int bufferSize, boolean hasNext, byte[] data)
-
-
Methodendetails
-
encode
- Angegeben von:
encode
in Schnittstellede.mrjulsen.mcdragonlib.net.IPacketBase<SoundDataPacket>
-
decode
- Angegeben von:
decode
in Schnittstellede.mrjulsen.mcdragonlib.net.IPacketBase<SoundDataPacket>
-
handle
public void handle(SoundDataPacket packet, Supplier<dev.architectury.networking.NetworkManager.PacketContext> contextSupplier) - Angegeben von:
handle
in Schnittstellede.mrjulsen.mcdragonlib.net.IPacketBase<SoundDataPacket>
-
getSoundId
public long getSoundId() -
getIndex
public int getIndex() -
getBufferSize
public int getBufferSize() -
isHasNext
public boolean isHasNext() -
getData
public byte[] getData() -
compareTo
- Angegeben von:
compareTo
in SchnittstelleComparable<SoundDataPacket>
-