Class ClientShopkeeperData

java.lang.Object
com.pixelmonmod.pixelmon.entities.npcs.registry.ClientShopkeeperData
All Implemented Interfaces:
IEncodeable

public class ClientShopkeeperData extends Object implements IEncodeable
Data about a shopkeeper to be used client-side in the NPC editor.
  • Constructor Details

    • ClientShopkeeperData

      public ClientShopkeeperData(String id, List<String> textures, List<String> names)
      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

      public ClientShopkeeperData(String id)
      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

      public String getID()
      Gets the ID of the JSON file defining the shopkeeper.
      Returns:
      The ID of the JSON file defining the shopkeeper.
    • getTextures

      public List<String> getTextures()
      Gets the possible textures for the shopkeeper.
      Returns:
      The possible textures for the shopkeeper.
    • getNames

      public List<String> 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 interface IEncodeable
      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 interface IEncodeable
      Parameters:
      buffer - The buffer to decode the object from.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object