public class ClientNPCData extends java.lang.Object implements IEncodeable
Constructor and Description |
---|
ClientNPCData(net.minecraft.network.PacketBuffer buffer)
Decodes data from a buffer.
|
ClientNPCData(java.lang.String texture)
Initializes the container.
|
ClientNPCData(java.lang.String id,
java.lang.String texture)
Initializes the container.
|
Modifier and Type | Method and Description |
---|---|
void |
decodeInto(net.minecraft.network.PacketBuffer buffer)
Decodes the object from a buffer.
|
void |
encodeInto(net.minecraft.network.PacketBuffer buffer)
Encodes the object into a buffer.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getID()
Gets the NPC data's internal ID.
|
java.lang.String |
getTexture()
Gets the name of the NPC's texture.
|
int |
hashCode() |
public ClientNPCData(java.lang.String id, java.lang.String texture)
id
- The NPC data's internal ID.texture
- The name of the NPC's texture.public ClientNPCData(java.lang.String texture)
texture
- The name of the NPC's texture.public ClientNPCData(net.minecraft.network.PacketBuffer buffer)
buffer
- The buffer to decode from.public java.lang.String getID()
public java.lang.String getTexture()
public void encodeInto(net.minecraft.network.PacketBuffer buffer)
IEncodeable
encodeInto
in interface IEncodeable
buffer
- The buffer to encode the object into.public void decodeInto(net.minecraft.network.PacketBuffer buffer)
IEncodeable
decodeInto
in interface IEncodeable
buffer
- The buffer to decode the object from.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object