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
ConstructorDescriptionInitializes 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 TypeMethodDescriptionvoid
decodeInto
(net.minecraft.network.FriendlyByteBuf buffer) Decodes the object from a buffer.void
encodeInto
(net.minecraft.network.FriendlyByteBuf buffer) Encodes the object into a buffer.boolean
getID()
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.int
hashCode()
-
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:IEncodeable
Encodes the object into a buffer.- Specified by:
encodeInto
in interfaceIEncodeable
- Parameters:
buffer
- The buffer to encode the object into.
-
decodeInto
public void decodeInto(net.minecraft.network.FriendlyByteBuf buffer) Description copied from interface:IEncodeable
Decodes the object from a buffer.- Specified by:
decodeInto
in interfaceIEncodeable
- Parameters:
buffer
- The buffer to decode the object from.
-
hashCode
public int hashCode() -
equals
-