public class ClientShopkeeperData extends java.lang.Object implements IEncodeable
| Constructor and Description |
|---|
ClientShopkeeperData(net.minecraft.network.PacketBuffer buffer)
Initializes a shopkeeper data object from a buffer.
|
ClientShopkeeperData(java.lang.String id)
Initializes a shopkeeper data object.
|
ClientShopkeeperData(java.lang.String id,
java.util.List<java.lang.String> textures,
java.util.List<java.lang.String> names)
Initializes a shopkeeper data object.
|
| 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 ID of the JSON file defining the shopkeeper.
|
java.util.List<java.lang.String> |
getNames()
Gets the possible names for the shopkeeper.
|
java.util.List<java.lang.String> |
getTextures()
Gets the possible textures for the shopkeeper.
|
int |
hashCode() |
public ClientShopkeeperData(java.lang.String id,
java.util.List<java.lang.String> textures,
java.util.List<java.lang.String> names)
id - The ID of the JSON file defining the shopkeeper.textures - The possible textures for the shopkeeper.names - The possible names for the shopkeeper.public ClientShopkeeperData(java.lang.String id)
id - The ID of the JSON file defining the shopkeeper.public ClientShopkeeperData(net.minecraft.network.PacketBuffer buffer)
buffer - The buffer to decode from.public java.lang.String getID()
public java.util.List<java.lang.String> getTextures()
public java.util.List<java.lang.String> getNames()
public void encodeInto(net.minecraft.network.PacketBuffer buffer)
IEncodeableencodeInto in interface IEncodeablebuffer - The buffer to encode the object into.public void decodeInto(net.minecraft.network.PacketBuffer buffer)
IEncodeabledecodeInto in interface IEncodeablebuffer - The buffer to decode the object from.public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object