Record Class DebugBrainDump
java.lang.Object
java.lang.Record
org.geysermc.mcprotocollib.protocol.data.game.debug.DebugBrainDump
- All Implemented Interfaces:
DebugInfo
public record DebugBrainDump(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, List<org.cloudburstmc.math.vector.Vector3i> pois, List<org.cloudburstmc.math.vector.Vector3i> potentialPois)
extends Record
implements DebugInfo
-
Constructor Summary
ConstructorsConstructorDescriptionDebugBrainDump(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, List<org.cloudburstmc.math.vector.Vector3i> pois, List<org.cloudburstmc.math.vector.Vector3i> potentialPois) Creates an instance of aDebugBrainDumprecord class. -
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.getType()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.List<org.cloudburstmc.math.vector.Vector3i>pois()Returns the value of thepoisrecord component.List<org.cloudburstmc.math.vector.Vector3i>Returns the value of thepotentialPoisrecord component.Returns the value of theprofessionrecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of thewantsGolemrecord component.intxp()Returns the value of thexprecord component.
-
Constructor Details
-
DebugBrainDump
public DebugBrainDump(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, List<org.cloudburstmc.math.vector.Vector3i> pois, List<org.cloudburstmc.math.vector.Vector3i> potentialPois) Creates an instance of aDebugBrainDumprecord class.- Parameters:
name- the value for thenamerecord componentprofession- the value for theprofessionrecord componentxp- the value for thexprecord componenthealth- the value for thehealthrecord componentmaxHealth- the value for themaxHealthrecord componentinventory- the value for theinventoryrecord 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
-
getType
-
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
-