Package net.minecraft.world.debug.data
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/BrainDebugDataintermediary net/minecraft/class_12006official bvinamed nameintermediary comp_4838official bnamed professionintermediary comp_4839official cnamed xpintermediary comp_4840official dnamed healthintermediary comp_4841official enamed maxHealthintermediary comp_4842official fnamed inventoryintermediary comp_4843official gnamed wantsGolemintermediary comp_4844official hnamed angerLevelintermediary comp_4845official inamed activitiesintermediary comp_4846official jnamed behaviorsintermediary comp_4847official knamed memoriesintermediary comp_4848official lnamed gossipsintermediary comp_4849official mnamed poisintermediary comp_4850official nnamed potentialPoisintermediary comp_4851official o
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe field for theactivitiesrecord component.private final intThe field for theangerLevelrecord component.The field for thebehaviorsrecord component.The field for thegossipsrecord component.private final floatThe field for thehealthrecord component.private final StringThe field for theinventoryrecord component.private final floatThe field for themaxHealthrecord component.The field for thememoriesrecord component.private final StringThe field for thenamerecord component.static final PacketCodec<PacketByteBuf, BrainDebugData> The field for thepoisrecord component.The field for thepotentialPoisrecord component.private final StringThe field for theprofessionrecord component.private final booleanThe field for thewantsGolemrecord component.private final intThe field for thexprecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theactivitiesrecord component.intReturns the value of theangerLevelrecord component.Returns the value of thebehaviorsrecord component.private static StringcollectMemoryString(ServerWorld world, long time, MemoryModuleType<?> type, Optional<? extends Memory<?>> memory) final booleanIndicates whether some other object is "equal to" this one.static BrainDebugDatafromEntity(ServerWorld world, LivingEntity entity) getGossips(VillagerEntity villager) getMemorizedPositions(Brain<?> brain, MemoryModuleType<GlobalPos>[] types) gossips()Returns the value of thegossipsrecord component.final inthashCode()Returns a hash code value for this object.floathealth()Returns the value of thehealthrecord component.Returns the value of theinventoryrecord component.floatReturns the value of themaxHealthrecord component.memories()Returns the value of thememoriesrecord component.name()Returns the value of thenamerecord component.booleanpoiContains(BlockPos pos) pois()Returns the value of thepoisrecord component.booleanReturns the value of thepotentialPoisrecord component.Returns the value of theprofessionrecord component.streamMemories(ServerWorld world, LivingEntity entity, long time) final StringtoString()Returns a string representation of this record class.private static StringtoString(ServerWorld world, @Nullable Object value) booleanReturns the value of thewantsGolemrecord component.voidwrite(PacketByteBuf buf) intxp()Returns the value of thexprecord component.
-
Field Details
-
name
The field for thenamerecord component. -
profession
The field for theprofessionrecord component. -
xp
private final int xpThe field for thexprecord component. -
health
private final float healthThe field for thehealthrecord component. -
maxHealth
private final float maxHealthThe field for themaxHealthrecord component. -
inventory
The field for theinventoryrecord component. -
wantsGolem
private final boolean wantsGolemThe field for thewantsGolemrecord component. -
angerLevel
private final int angerLevelThe field for theangerLevelrecord component. -
activities
The field for theactivitiesrecord component. -
behaviors
The field for thebehaviorsrecord component. -
memories
The field for thememoriesrecord component. -
gossips
The field for thegossipsrecord component. -
pois
The field for thepoisrecord component. -
potentialPois
The field for thepotentialPoisrecord component. -
PACKET_CODEC
- Mappings:
Namespace Name Mixin selector named PACKET_CODECLnet/minecraft/world/debug/data/BrainDebugData;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;intermediary field_62845Lnet/minecraft/class_12006;field_62845:Lnet/minecraft/class_9139;official aLbvi;a:Laae;
-
-
Constructor Details
-
BrainDebugData
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/world/debug/data/BrainDebugData;<init>(Lnet/minecraft/network/PacketByteBuf;)Vintermediary <init>Lnet/minecraft/class_12006;<init>(Lnet/minecraft/class_2540;)Vofficial <init>Lbvi;<init>(Lwn;)V
-
BrainDebugData
-
-
Method Details
-
write
- Mappings:
Namespace Name Mixin selector named writeLnet/minecraft/world/debug/data/BrainDebugData;write(Lnet/minecraft/network/PacketByteBuf;)Vintermediary method_74560Lnet/minecraft/class_12006;method_74560(Lnet/minecraft/class_2540;)Vofficial aLbvi;a(Lwn;)V
-
fromEntity
- Mappings:
Namespace Name Mixin selector named fromEntityLnet/minecraft/world/debug/data/BrainDebugData;fromEntity(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;)Lnet/minecraft/world/debug/data/BrainDebugData;intermediary method_74551Lnet/minecraft/class_12006;method_74551(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;)Lnet/minecraft/class_12006;official aLbvi;a(Lawx;Lcew;)Lbvi;
-
getMemorizedPositions
@SafeVarargs private static Set<BlockPos> getMemorizedPositions(Brain<?> brain, MemoryModuleType<GlobalPos>[] types) - Mappings:
Namespace Name Mixin selector named getMemorizedPositionsLnet/minecraft/world/debug/data/BrainDebugData;getMemorizedPositions(Lnet/minecraft/entity/ai/brain/Brain;[Lnet/minecraft/entity/ai/brain/MemoryModuleType;)Ljava/util/Set;intermediary method_74554Lnet/minecraft/class_12006;method_74554(Lnet/minecraft/class_4095;[Lnet/minecraft/class_4140;)Ljava/util/Set;official aLbvi;a(Lcfw;[Lcnz;)Ljava/util/Set;
-
getGossips
- Mappings:
Namespace Name Mixin selector named getGossipsLnet/minecraft/world/debug/data/BrainDebugData;getGossips(Lnet/minecraft/entity/passive/VillagerEntity;)Ljava/util/List;intermediary method_74555Lnet/minecraft/class_12006;method_74555(Lnet/minecraft/class_1646;)Ljava/util/List;official aLbvi;a(Lcyx;)Ljava/util/List;
-
streamMemories
- Mappings:
Namespace Name Mixin selector named streamMemoriesLnet/minecraft/world/debug/data/BrainDebugData;streamMemories(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;J)Ljava/util/stream/Stream;intermediary method_74552Lnet/minecraft/class_12006;method_74552(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;J)Ljava/util/stream/Stream;official aLbvi;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 collectMemoryStringLnet/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_74549Lnet/minecraft/class_12006;method_74549(Lnet/minecraft/class_3218;JLnet/minecraft/class_4140;Ljava/util/Optional;)Ljava/lang/String;official aLbvi;a(Lawx;JLcnz;Ljava/util/Optional;)Ljava/lang/String;
-
toString
- Mappings:
Namespace Name Mixin selector named toStringLnet/minecraft/world/debug/data/BrainDebugData;toString(Lnet/minecraft/server/world/ServerWorld;Ljava/lang/Object;)Ljava/lang/String;intermediary method_74553Lnet/minecraft/class_12006;method_74553(Lnet/minecraft/class_3218;Ljava/lang/Object;)Ljava/lang/String;official aLbvi;a(Lawx;Ljava/lang/Object;)Ljava/lang/String;
-
poiContains
- Mappings:
Namespace Name Mixin selector named poiContainsLnet/minecraft/world/debug/data/BrainDebugData;poiContains(Lnet/minecraft/util/math/BlockPos;)Zintermediary method_74556Lnet/minecraft/class_12006;method_74556(Lnet/minecraft/class_2338;)Zofficial aLbvi;a(Lja;)Z
-
potentialPoiContains
- Mappings:
Namespace Name Mixin selector named potentialPoiContainsLnet/minecraft/world/debug/data/BrainDebugData;potentialPoiContains(Lnet/minecraft/util/math/BlockPos;)Zintermediary method_74563Lnet/minecraft/class_12006;method_74563(Lnet/minecraft/class_2338;)Zofficial bLbvi;b(Lja;)Z
-
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. -
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. -
equals
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 withObjects::equals(Object,Object); primitive components are compared with '=='. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
profession
Returns the value of theprofessionrecord component.- Returns:
- the value of the
professionrecord component
-
xp
public int xp()Returns the value of thexprecord component.- Returns:
- the value of the
xprecord component
-
health
public float health()Returns the value of thehealthrecord component.- Returns:
- the value of the
healthrecord component
-
maxHealth
public float maxHealth()Returns the value of themaxHealthrecord component.- Returns:
- the value of the
maxHealthrecord component
-
inventory
Returns the value of theinventoryrecord component.- Returns:
- the value of the
inventoryrecord component
-
wantsGolem
public boolean wantsGolem()Returns the value of thewantsGolemrecord component.- Returns:
- the value of the
wantsGolemrecord component
-
angerLevel
public int angerLevel()Returns the value of theangerLevelrecord component.- Returns:
- the value of the
angerLevelrecord component
-
activities
Returns the value of theactivitiesrecord component.- Returns:
- the value of the
activitiesrecord component
-
behaviors
Returns the value of thebehaviorsrecord component.- Returns:
- the value of the
behaviorsrecord component
-
memories
Returns the value of thememoriesrecord component.- Returns:
- the value of the
memoriesrecord component
-
gossips
Returns the value of thegossipsrecord component.- Returns:
- the value of the
gossipsrecord component
-
pois
Returns the value of thepoisrecord component.- Returns:
- the value of the
poisrecord component
-
potentialPois
Returns the value of thepotentialPoisrecord component.- Returns:
- the value of the
potentialPoisrecord component
-