Record Class BrainDebugData

java.lang.Object
java.lang.Record
net.minecraft.world.debug.data.BrainDebugData
Record Components:
name -
profession -
xp -
health -
maxHealth -
inventory -
wantsGolem -
angerLevel -
activities -
behaviors -
memories -
gossips -
pois -
potentialPois -

public record BrainDebugData(String name, String profession, int xp, float health, float maxHealth, String inventory, boolean wantsGolem, int angerLevel, List<String> activities, List<String> behaviors, List<String> memories, List<String> gossips, Set<BlockPos> pois, Set<BlockPos> potentialPois) extends Record
Mappings:
Namespace Name
named net/minecraft/world/debug/data/BrainDebugData
intermediary net/minecraft/class_12006
official bvi
named name
intermediary comp_4838
official b
named profession
intermediary comp_4839
official c
named xp
intermediary comp_4840
official d
named health
intermediary comp_4841
official e
named maxHealth
intermediary comp_4842
official f
named inventory
intermediary comp_4843
official g
named wantsGolem
intermediary comp_4844
official h
named angerLevel
intermediary comp_4845
official i
named activities
intermediary comp_4846
official j
named behaviors
intermediary comp_4847
official k
named memories
intermediary comp_4848
official l
named gossips
intermediary comp_4849
official m
named pois
intermediary comp_4850
official n
named potentialPois
intermediary comp_4851
official o
  • Field Details

    • 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.
    • inventory

      private final String inventory
      The field for the inventory 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.
    • PACKET_CODEC

      public static final PacketCodec<PacketByteBuf,BrainDebugData> PACKET_CODEC
      Mappings:
      Namespace Name Mixin selector
      named PACKET_CODEC Lnet/minecraft/world/debug/data/BrainDebugData;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_62845 Lnet/minecraft/class_12006;field_62845:Lnet/minecraft/class_9139;
      official a Lbvi;a:Laae;
  • Constructor Details

    • BrainDebugData

      public BrainDebugData(PacketByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/world/debug/data/BrainDebugData;<init>(Lnet/minecraft/network/PacketByteBuf;)V
      intermediary <init> Lnet/minecraft/class_12006;<init>(Lnet/minecraft/class_2540;)V
      official <init> Lbvi;<init>(Lwn;)V
    • BrainDebugData

      public BrainDebugData(String string, String string2, int int2, float float2, float float3, String string3, boolean bool, int int3, List<String> list, List<String> list2, List<String> list3, List<String> list4, Set<BlockPos> set, Set<BlockPos> set2)
  • Method Details

    • write

      public void write(PacketByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      named write Lnet/minecraft/world/debug/data/BrainDebugData;write(Lnet/minecraft/network/PacketByteBuf;)V
      intermediary method_74560 Lnet/minecraft/class_12006;method_74560(Lnet/minecraft/class_2540;)V
      official a Lbvi;a(Lwn;)V
    • fromEntity

      public static BrainDebugData fromEntity(ServerWorld world, LivingEntity entity)
      Mappings:
      Namespace Name Mixin selector
      named fromEntity Lnet/minecraft/world/debug/data/BrainDebugData;fromEntity(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;)Lnet/minecraft/world/debug/data/BrainDebugData;
      intermediary method_74551 Lnet/minecraft/class_12006;method_74551(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;)Lnet/minecraft/class_12006;
      official a Lbvi;a(Lawx;Lcew;)Lbvi;
    • getMemorizedPositions

      @SafeVarargs private static Set<BlockPos> getMemorizedPositions(Brain<?> brain, MemoryModuleType<GlobalPos>[] types)
      Mappings:
      Namespace Name Mixin selector
      named getMemorizedPositions Lnet/minecraft/world/debug/data/BrainDebugData;getMemorizedPositions(Lnet/minecraft/entity/ai/brain/Brain;[Lnet/minecraft/entity/ai/brain/MemoryModuleType;)Ljava/util/Set;
      intermediary method_74554 Lnet/minecraft/class_12006;method_74554(Lnet/minecraft/class_4095;[Lnet/minecraft/class_4140;)Ljava/util/Set;
      official a Lbvi;a(Lcfw;[Lcnz;)Ljava/util/Set;
    • getGossips

      private static List<String> getGossips(VillagerEntity villager)
      Mappings:
      Namespace Name Mixin selector
      named getGossips Lnet/minecraft/world/debug/data/BrainDebugData;getGossips(Lnet/minecraft/entity/passive/VillagerEntity;)Ljava/util/List;
      intermediary method_74555 Lnet/minecraft/class_12006;method_74555(Lnet/minecraft/class_1646;)Ljava/util/List;
      official a Lbvi;a(Lcyx;)Ljava/util/List;
    • streamMemories

      private static Stream<String> streamMemories(ServerWorld world, LivingEntity entity, long time)
      Mappings:
      Namespace Name Mixin selector
      named streamMemories Lnet/minecraft/world/debug/data/BrainDebugData;streamMemories(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;J)Ljava/util/stream/Stream;
      intermediary method_74552 Lnet/minecraft/class_12006;method_74552(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;J)Ljava/util/stream/Stream;
      official a Lbvi;a(Lawx;Lcew;J)Ljava/util/stream/Stream;
    • collectMemoryString

      private static String collectMemoryString(ServerWorld world, long time, MemoryModuleType<?> type, Optional<? extends Memory<?>> memory)
      Mappings:
      Namespace Name Mixin selector
      named collectMemoryString Lnet/minecraft/world/debug/data/BrainDebugData;collectMemoryString(Lnet/minecraft/server/world/ServerWorld;JLnet/minecraft/entity/ai/brain/MemoryModuleType;Ljava/util/Optional;)Ljava/lang/String;
      intermediary method_74549 Lnet/minecraft/class_12006;method_74549(Lnet/minecraft/class_3218;JLnet/minecraft/class_4140;Ljava/util/Optional;)Ljava/lang/String;
      official a Lbvi;a(Lawx;JLcnz;Ljava/util/Optional;)Ljava/lang/String;
    • toString

      private static String toString(ServerWorld world, @Nullable @Nullable Object value)
      Mappings:
      Namespace Name Mixin selector
      named toString Lnet/minecraft/world/debug/data/BrainDebugData;toString(Lnet/minecraft/server/world/ServerWorld;Ljava/lang/Object;)Ljava/lang/String;
      intermediary method_74553 Lnet/minecraft/class_12006;method_74553(Lnet/minecraft/class_3218;Ljava/lang/Object;)Ljava/lang/String;
      official a Lbvi;a(Lawx;Ljava/lang/Object;)Ljava/lang/String;
    • poiContains

      public boolean poiContains(BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      named poiContains Lnet/minecraft/world/debug/data/BrainDebugData;poiContains(Lnet/minecraft/util/math/BlockPos;)Z
      intermediary method_74556 Lnet/minecraft/class_12006;method_74556(Lnet/minecraft/class_2338;)Z
      official a Lbvi;a(Lja;)Z
    • potentialPoiContains

      public boolean potentialPoiContains(BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      named potentialPoiContains Lnet/minecraft/world/debug/data/BrainDebugData;potentialPoiContains(Lnet/minecraft/util/math/BlockPos;)Z
      intermediary method_74563 Lnet/minecraft/class_12006;method_74563(Lnet/minecraft/class_2338;)Z
      official b Lbvi;b(Lja;)Z
    • 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 object)
      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:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • 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
    • inventory

      public String inventory()
      Returns the value of the inventory record component.
      Returns:
      the value of the inventory 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