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
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 intThe field for theidrecord 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.private final PathThe field for thepathrecord component.The field for thepoisrecord component.private final Vec3The field for theposrecord component.The field for thepotentialPoisrecord component.private final StringThe field for theprofessionrecord component.private final UUIDThe field for theuuidrecord component.private final booleanThe field for thewantsGolemrecord component.private final intThe field for thexprecord component. -
Constructor Summary
ConstructorsConstructorDescriptionBrainDump(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 aBrainDumprecord class.BrainDump(FriendlyByteBuf p_294290_) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theactivitiesrecord component.intReturns the value of theangerLevelrecord component.Returns the value of thebehaviorsrecord component.final booleanIndicates whether some other object is "equal to" this one.gossips()Returns the value of thegossipsrecord component.final inthashCode()Returns a hash code value for this object.booleanbooleanhasPotentialPoi(BlockPos p_295626_) floathealth()Returns the value of thehealthrecord component.intid()Returns the value of theidrecord 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.path()Returns the value of thepathrecord component.pois()Returns the value of thepoisrecord component.pos()Returns the value of theposrecord component.Returns the value of thepotentialPoisrecord component.Returns the value of theprofessionrecord component.final StringtoString()Returns a string representation of this record class.uuid()Returns the value of theuuidrecord component.booleanReturns the value of thewantsGolemrecord component.voidwrite(FriendlyByteBuf p_296077_) intxp()Returns the value of thexprecord component.
-
Field Details
-
uuid
The field for theuuidrecord component. -
id
private final int idThe field for theidrecord component. -
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. -
pos
The field for theposrecord component. -
inventory
The field for theinventoryrecord component. -
path
The field for thepathrecord 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.
-
-
Constructor Details
-
BrainDump
-
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 aBrainDumprecord class.- Parameters:
uuid- the value for theuuidrecord componentid- the value for theidrecord componentname- the value for thenamerecord componentprofession- the value for theprofessionrecord componentxp- the value for thexprecord componenthealth- the value for thehealthrecord componentmaxHealth- the value for themaxHealthrecord componentpos- the value for theposrecord componentinventory- the value for theinventoryrecord componentpath- the value for thepathrecord componentwantsGolem- the value for thewantsGolemrecord componentangerLevel- the value for theangerLevelrecord componentactivities- the value for theactivitiesrecord componentbehaviors- the value for thebehaviorsrecord componentmemories- the value for thememoriesrecord componentgossips- the value for thegossipsrecord componentpois- the value for thepoisrecord componentpotentialPois- the value for thepotentialPoisrecord component
-
-
Method Details
-
write
-
hasPoi
-
hasPotentialPoi
-
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 '=='. -
uuid
Returns the value of theuuidrecord component.- Returns:
- the value of the
uuidrecord component
-
id
public int id()Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
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
-
pos
Returns the value of theposrecord component.- Returns:
- the value of the
posrecord component
-
inventory
Returns the value of theinventoryrecord component.- Returns:
- the value of the
inventoryrecord component
-
path
Returns the value of thepathrecord component.- Returns:
- the value of the
pathrecord 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
-