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

public class ClientNPCData extends Object implements IEncodeable
Client-side chatting NPC data for the NPC editor.
  • Constructor Details

    • ClientNPCData

      public ClientNPCData(String id, String texture)
      Initializes the container.
      Parameters:
      id - The NPC data's internal ID.
      texture - The name of the NPC's texture.
    • ClientNPCData

      public ClientNPCData(String texture)
      Initializes the container.
      Parameters:
      texture - The name of the NPC's texture.
    • ClientNPCData

      public ClientNPCData(net.minecraft.network.FriendlyByteBuf buffer)
      Decodes data from a buffer.
      Parameters:
      buffer - The buffer to decode from.
  • Method Details

    • getID

      public String getID()
      Gets the NPC data's internal ID.
      Returns:
      The NPC data's internal ID.
    • getTexture

      public String getTexture()
      Gets the name of the NPC's texture.
      Returns:
      The name of the NPC's texture.
    • 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