Record Class BrainDebugPayload.BrainDump

java.lang.Object
java.lang.Record
net.minecraft.network.protocol.common.custom.BrainDebugPayload.BrainDump
Enclosing class:
BrainDebugPayload

public static record BrainDebugPayload.BrainDump(UUID uuid, int id, String name, String profession, int xp, float health, float maxHealth, Vec3 pos, String inventory, @Nullable Path path, boolean wantsGolem, int angerLevel, List<String> activities, List<String> behaviors, List<String> memories, List<String> gossips, Set<BlockPos> pois, Set<BlockPos> potentialPois) extends Record
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final List<String>
    The field for the activities record component.
    private final int
    The field for the angerLevel record component.
    private final List<String>
    The field for the behaviors record component.
    private final List<String>
    The field for the gossips record component.
    private final float
    The field for the health record component.
    private final int
    The field for the id record component.
    private final String
    The field for the inventory record component.
    private final float
    The field for the maxHealth record component.
    private final List<String>
    The field for the memories record component.
    private final String
    The field for the name record component.
    private final Path
    The field for the path record component.
    private final Set<BlockPos>
    The field for the pois record component.
    private final Vec3
    The field for the pos record component.
    private final Set<BlockPos>
    The field for the potentialPois record component.
    private final String
    The field for the profession record component.
    private final UUID
    The field for the uuid record component.
    private final boolean
    The field for the wantsGolem record component.
    private final int
    The field for the xp record component.
  • Constructor Summary

    Constructors
    Constructor
    Description
    BrainDump(UUID uuid, int id, String name, String profession, int xp, float health, float maxHealth, Vec3 pos, String inventory, Path path, boolean wantsGolem, int angerLevel, List<String> activities, List<String> behaviors, List<String> memories, List<String> gossips, Set<BlockPos> pois, Set<BlockPos> potentialPois)
    Creates an instance of a BrainDump record class.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the value of the activities record component.
    int
    Returns the value of the angerLevel record component.
    Returns the value of the behaviors record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    Returns the value of the gossips record component.
    final int
    Returns a hash code value for this object.
    boolean
    hasPoi(BlockPos p_294781_)
     
    boolean
     
    float
    Returns the value of the health record component.
    int
    id()
    Returns the value of the id record component.
    Returns the value of the inventory record component.
    float
    Returns the value of the maxHealth record component.
    Returns the value of the memories record component.
    Returns the value of the name record component.
    Returns the value of the path record component.
    Returns the value of the pois record component.
    pos()
    Returns the value of the pos record component.
    Returns the value of the potentialPois record component.
    Returns the value of the profession record component.
    final String
    Returns a string representation of this record class.
    Returns the value of the uuid record component.
    boolean
    Returns the value of the wantsGolem record component.
    void
     
    int
    xp()
    Returns the value of the xp record component.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • uuid

      private final UUID uuid
      The field for the uuid record component.
    • id

      private final int id
      The field for the id record component.
    • name

      private final String name
      The field for the name record component.
    • profession

      private final String profession
      The field for the profession record component.
    • xp

      private final int xp
      The field for the xp record component.
    • health

      private final float health
      The field for the health record component.
    • maxHealth

      private final float maxHealth
      The field for the maxHealth record component.
    • pos

      private final Vec3 pos
      The field for the pos record component.
    • inventory

      private final String inventory
      The field for the inventory record component.
    • path

      @Nullable private final Path path
      The field for the path record component.
    • wantsGolem

      private final boolean wantsGolem
      The field for the wantsGolem record component.
    • angerLevel

      private final int angerLevel
      The field for the angerLevel record component.
    • activities

      private final List<String> activities
      The field for the activities record component.
    • behaviors

      private final List<String> behaviors
      The field for the behaviors record component.
    • memories

      private final List<String> memories
      The field for the memories record component.
    • gossips

      private final List<String> gossips
      The field for the gossips record component.
    • pois

      private final Set<BlockPos> pois
      The field for the pois record component.
    • potentialPois

      private final Set<BlockPos> potentialPois
      The field for the potentialPois record component.
  • Constructor Details

    • BrainDump

      public BrainDump(FriendlyByteBuf p_294290_)
    • BrainDump

      public BrainDump(UUID uuid, int id, String name, String profession, int xp, float health, float maxHealth, Vec3 pos, String inventory, @Nullable Path path, boolean wantsGolem, int angerLevel, List<String> activities, List<String> behaviors, List<String> memories, List<String> gossips, Set<BlockPos> pois, Set<BlockPos> potentialPois)
      Creates an instance of a BrainDump record class.
      Parameters:
      uuid - the value for the uuid record component
      id - the value for the id record component
      name - the value for the name record component
      profession - the value for the profession record component
      xp - the value for the xp record component
      health - the value for the health record component
      maxHealth - the value for the maxHealth record component
      pos - the value for the pos record component
      inventory - the value for the inventory record component
      path - the value for the path record component
      wantsGolem - the value for the wantsGolem record component
      angerLevel - the value for the angerLevel record component
      activities - the value for the activities record component
      behaviors - the value for the behaviors record component
      memories - the value for the memories record component
      gossips - the value for the gossips record component
      pois - the value for the pois record component
      potentialPois - the value for the potentialPois record component
  • Method Details

    • write

      public void write(FriendlyByteBuf p_296077_)
    • hasPoi

      public boolean hasPoi(BlockPos p_294781_)
    • hasPotentialPoi

      public boolean hasPotentialPoi(BlockPos p_295626_)
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • uuid

      public UUID uuid()
      Returns the value of the uuid record component.
      Returns:
      the value of the uuid record component
    • id

      public int id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • name

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • profession

      public String profession()
      Returns the value of the profession record component.
      Returns:
      the value of the profession record component
    • xp

      public int xp()
      Returns the value of the xp record component.
      Returns:
      the value of the xp record component
    • health

      public float health()
      Returns the value of the health record component.
      Returns:
      the value of the health record component
    • maxHealth

      public float maxHealth()
      Returns the value of the maxHealth record component.
      Returns:
      the value of the maxHealth record component
    • pos

      public Vec3 pos()
      Returns the value of the pos record component.
      Returns:
      the value of the pos record component
    • inventory

      public String inventory()
      Returns the value of the inventory record component.
      Returns:
      the value of the inventory record component
    • path

      @Nullable public Path path()
      Returns the value of the path record component.
      Returns:
      the value of the path record component
    • wantsGolem

      public boolean wantsGolem()
      Returns the value of the wantsGolem record component.
      Returns:
      the value of the wantsGolem record component
    • angerLevel

      public int angerLevel()
      Returns the value of the angerLevel record component.
      Returns:
      the value of the angerLevel record component
    • activities

      public List<String> activities()
      Returns the value of the activities record component.
      Returns:
      the value of the activities record component
    • behaviors

      public List<String> behaviors()
      Returns the value of the behaviors record component.
      Returns:
      the value of the behaviors record component
    • memories

      public List<String> memories()
      Returns the value of the memories record component.
      Returns:
      the value of the memories record component
    • gossips

      public List<String> gossips()
      Returns the value of the gossips record component.
      Returns:
      the value of the gossips record component
    • pois

      public Set<BlockPos> pois()
      Returns the value of the pois record component.
      Returns:
      the value of the pois record component
    • potentialPois

      public Set<BlockPos> potentialPois()
      Returns the value of the potentialPois record component.
      Returns:
      the value of the potentialPois record component