Class SChatPacket
- java.lang.Object
-
- net.minecraft.network.play.server.SChatPacket
-
- All Implemented Interfaces:
IPacket<IClientPlayNetHandler>
public class SChatPacket extends java.lang.Object implements IPacket<IClientPlayNetHandler>
-
-
Field Summary
Fields Modifier and Type Field Description private ITextComponent
message
private java.util.UUID
sender
private ChatType
type
-
Constructor Summary
Constructors Constructor Description SChatPacket()
SChatPacket(ITextComponent p_i232578_1_, ChatType p_i232578_2_, java.util.UUID p_i232578_3_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ITextComponent
getMessage()
java.util.UUID
getSender()
ChatType
getType()
void
handle(IClientPlayNetHandler p_148833_1_)
boolean
isSkippable()
boolean
isSystem()
void
read(PacketBuffer p_148837_1_)
void
write(PacketBuffer p_148840_1_)
-
-
-
Field Detail
-
message
private ITextComponent message
-
type
private ChatType type
-
sender
private java.util.UUID sender
-
-
Constructor Detail
-
SChatPacket
public SChatPacket()
-
SChatPacket
public SChatPacket(ITextComponent p_i232578_1_, ChatType p_i232578_2_, java.util.UUID p_i232578_3_)
-
-
Method Detail
-
read
public void read(PacketBuffer p_148837_1_) throws java.io.IOException
- Specified by:
read
in interfaceIPacket<IClientPlayNetHandler>
- Throws:
java.io.IOException
-
write
public void write(PacketBuffer p_148840_1_) throws java.io.IOException
- Specified by:
write
in interfaceIPacket<IClientPlayNetHandler>
- Throws:
java.io.IOException
-
handle
public void handle(IClientPlayNetHandler p_148833_1_)
- Specified by:
handle
in interfaceIPacket<IClientPlayNetHandler>
-
getMessage
public ITextComponent getMessage()
-
isSystem
public boolean isSystem()
-
getType
public ChatType getType()
-
getSender
public java.util.UUID getSender()
-
isSkippable
public boolean isSkippable()
- Specified by:
isSkippable
in interfaceIPacket<IClientPlayNetHandler>
-
-