记录类 BrainDebugPayload.BrainDump

java.lang.Object
java.lang.Record
net.minecraft.network.protocol.common.custom.BrainDebugPayload.BrainDump
封闭类:
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
  • 字段详细资料

    • uuid

      private final UUID uuid
      uuid 记录组件的字段。
    • id

      private final int id
      id 记录组件的字段。
    • name

      private final String name
      name 记录组件的字段。
    • profession

      private final String profession
      profession 记录组件的字段。
    • xp

      private final int xp
      xp 记录组件的字段。
    • health

      private final float health
      health 记录组件的字段。
    • maxHealth

      private final float maxHealth
      maxHealth 记录组件的字段。
    • pos

      private final Vec3 pos
      pos 记录组件的字段。
    • inventory

      private final String inventory
      inventory 记录组件的字段。
    • path

      @Nullable private final Path path
      path 记录组件的字段。
    • wantsGolem

      private final boolean wantsGolem
      wantsGolem 记录组件的字段。
    • angerLevel

      private final int angerLevel
      angerLevel 记录组件的字段。
    • activities

      private final List<String> activities
      activities 记录组件的字段。
    • behaviors

      private final List<String> behaviors
      behaviors 记录组件的字段。
    • memories

      private final List<String> memories
      memories 记录组件的字段。
    • gossips

      private final List<String> gossips
      gossips 记录组件的字段。
    • pois

      private final Set<BlockPos> pois
      pois 记录组件的字段。
    • potentialPois

      private final Set<BlockPos> potentialPois
      potentialPois 记录组件的字段。
  • 构造器详细资料

    • 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)
      创建 BrainDump 记录类的实例。
      参数:
      uuid - uuid 记录组件的值
      id - id 记录组件的值
      name - name 记录组件的值
      profession - profession 记录组件的值
      xp - xp 记录组件的值
      health - health 记录组件的值
      maxHealth - maxHealth 记录组件的值
      pos - pos 记录组件的值
      inventory - inventory 记录组件的值
      path - path 记录组件的值
      wantsGolem - wantsGolem 记录组件的值
      angerLevel - angerLevel 记录组件的值
      activities - activities 记录组件的值
      behaviors - behaviors 记录组件的值
      memories - memories 记录组件的值
      gossips - gossips 记录组件的值
      pois - pois 记录组件的值
      potentialPois - potentialPois 记录组件的值
  • 方法详细资料

    • 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()
      返回此记录类的字符串表示形式。此表示形式包含类的名称,后跟每个记录组件的名称和值。
      指定者:
      toString 在类中 Record
      返回:
      此对象的字符串表示形式
    • hashCode

      public final int hashCode()
      返回此对象的哈希代码值。此值派生自每个记录组件的哈希代码。
      指定者:
      hashCode 在类中 Record
      返回:
      此对象的哈希代码值
    • equals

      public final boolean equals(Object o)
      指示某个其他对象是否“等于”此对象。如果两个对象属于同一个类,而且所有记录组件都相等,则这两个对象相等。 使用 Objects::equals(Object,Object) 对参考组件进行比较;使用 '==' 对基元组件进行比较
      指定者:
      equals 在类中 Record
      参数:
      o - 要与之进行比较的对象
      返回:
      如果此对象与 o 参数相同,则为 true;否则为 false
    • uuid

      public UUID uuid()
      返回 uuid 记录组件的值。
      返回:
      uuid 记录组件的值
    • id

      public int id()
      返回 id 记录组件的值。
      返回:
      id 记录组件的值
    • name

      public String name()
      返回 name 记录组件的值。
      返回:
      name 记录组件的值
    • profession

      public String profession()
      返回 profession 记录组件的值。
      返回:
      profession 记录组件的值
    • xp

      public int xp()
      返回 xp 记录组件的值。
      返回:
      xp 记录组件的值
    • health

      public float health()
      返回 health 记录组件的值。
      返回:
      health 记录组件的值
    • maxHealth

      public float maxHealth()
      返回 maxHealth 记录组件的值。
      返回:
      maxHealth 记录组件的值
    • pos

      public Vec3 pos()
      返回 pos 记录组件的值。
      返回:
      pos 记录组件的值
    • inventory

      public String inventory()
      返回 inventory 记录组件的值。
      返回:
      inventory 记录组件的值
    • path

      @Nullable public Path path()
      返回 path 记录组件的值。
      返回:
      path 记录组件的值
    • wantsGolem

      public boolean wantsGolem()
      返回 wantsGolem 记录组件的值。
      返回:
      wantsGolem 记录组件的值
    • angerLevel

      public int angerLevel()
      返回 angerLevel 记录组件的值。
      返回:
      angerLevel 记录组件的值
    • activities

      public List<String> activities()
      返回 activities 记录组件的值。
      返回:
      activities 记录组件的值
    • behaviors

      public List<String> behaviors()
      返回 behaviors 记录组件的值。
      返回:
      behaviors 记录组件的值
    • memories

      public List<String> memories()
      返回 memories 记录组件的值。
      返回:
      memories 记录组件的值
    • gossips

      public List<String> gossips()
      返回 gossips 记录组件的值。
      返回:
      gossips 记录组件的值
    • pois

      public Set<BlockPos> pois()
      返回 pois 记录组件的值。
      返回:
      pois 记录组件的值
    • potentialPois

      public Set<BlockPos> potentialPois()
      返回 potentialPois 记录组件的值。
      返回:
      potentialPois 记录组件的值