Class ClientShopkeeperData
java.lang.Object
com.pixelmonmod.pixelmon.entities.npcs.registry.ClientShopkeeperData
- All Implemented Interfaces:
IEncodeable
Data about a shopkeeper to be used client-side in the NPC editor.
-
Constructor Summary
ConstructorsConstructorDescriptionInitializes a shopkeeper data object.Initializes a shopkeeper data object.ClientShopkeeperData(net.minecraft.network.FriendlyByteBuf buffer) Initializes a shopkeeper data object from a buffer. -
Method Summary
Modifier and TypeMethodDescriptionvoiddecodeInto(net.minecraft.network.FriendlyByteBuf buffer) Decodes the object from a buffer.voidencodeInto(net.minecraft.network.FriendlyByteBuf buffer) Encodes the object into a buffer.booleangetID()Gets the ID of the JSON file defining the shopkeeper.getNames()Gets the possible names for the shopkeeper.Gets the possible textures for the shopkeeper.inthashCode()
-
Constructor Details
-
ClientShopkeeperData
Initializes a shopkeeper data object.- Parameters:
id- The ID of the JSON file defining the shopkeeper.textures- The possible textures for the shopkeeper.names- The possible names for the shopkeeper.
-
ClientShopkeeperData
Initializes a shopkeeper data object.- Parameters:
id- The ID of the JSON file defining the shopkeeper.
-
ClientShopkeeperData
public ClientShopkeeperData(net.minecraft.network.FriendlyByteBuf buffer) Initializes a shopkeeper data object from a buffer.- Parameters:
buffer- The buffer to decode from.
-
-
Method Details
-
getID
Gets the ID of the JSON file defining the shopkeeper.- Returns:
- The ID of the JSON file defining the shopkeeper.
-
getTextures
Gets the possible textures for the shopkeeper.- Returns:
- The possible textures for the shopkeeper.
-
getNames
Gets the possible names for the shopkeeper.- Returns:
- The possible names for the shopkeeper.
-
encodeInto
public void encodeInto(net.minecraft.network.FriendlyByteBuf buffer) Description copied from interface:IEncodeableEncodes the object into a buffer.- Specified by:
encodeIntoin interfaceIEncodeable- Parameters:
buffer- The buffer to encode the object into.
-
decodeInto
public void decodeInto(net.minecraft.network.FriendlyByteBuf buffer) Description copied from interface:IEncodeableDecodes the object from a buffer.- Specified by:
decodeIntoin interfaceIEncodeable- Parameters:
buffer- The buffer to decode the object from.
-
hashCode
public int hashCode() -
equals
-