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 SummaryFieldsModifier 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 SummaryConstructorsConstructorDescriptionBrainDump(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 SummaryModifier 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- 
uuidThe field for theuuidrecord component.
- 
idprivate final int idThe field for theidrecord component.
- 
nameThe field for thenamerecord component.
- 
professionThe field for theprofessionrecord component.
- 
xpprivate final int xpThe field for thexprecord component.
- 
healthprivate final float healthThe field for thehealthrecord component.
- 
maxHealthprivate final float maxHealthThe field for themaxHealthrecord component.
- 
posThe field for theposrecord component.
- 
inventoryThe field for theinventoryrecord component.
- 
pathThe field for thepathrecord component.
- 
wantsGolemprivate final boolean wantsGolemThe field for thewantsGolemrecord component.
- 
angerLevelprivate final int angerLevelThe field for theangerLevelrecord component.
- 
activitiesThe field for theactivitiesrecord component.
- 
behaviorsThe field for thebehaviorsrecord component.
- 
memoriesThe field for thememoriesrecord component.
- 
gossipsThe field for thegossipsrecord component.
- 
poisThe field for thepoisrecord component.
- 
potentialPoisThe field for thepotentialPoisrecord component.
 
- 
- 
Constructor Details- 
BrainDump
- 
BrainDumppublic 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 the- uuidrecord component
- id- the value for the- idrecord component
- name- the value for the- namerecord component
- profession- the value for the- professionrecord component
- xp- the value for the- xprecord component
- health- the value for the- healthrecord component
- maxHealth- the value for the- maxHealthrecord component
- pos- the value for the- posrecord component
- inventory- the value for the- inventoryrecord component
- path- the value for the- pathrecord component
- wantsGolem- the value for the- wantsGolemrecord component
- angerLevel- the value for the- angerLevelrecord component
- activities- the value for the- activitiesrecord component
- behaviors- the value for the- behaviorsrecord component
- memories- the value for the- memoriesrecord component
- gossips- the value for the- gossipsrecord component
- pois- the value for the- poisrecord component
- potentialPois- the value for the- potentialPoisrecord component
 
 
- 
- 
Method Details- 
write
- 
hasPoi
- 
hasPotentialPoi
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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 '=='.
- 
uuidReturns the value of theuuidrecord component.- Returns:
- the value of the uuidrecord component
 
- 
idpublic int id()Returns the value of theidrecord component.- Returns:
- the value of the idrecord component
 
- 
nameReturns the value of thenamerecord component.- Returns:
- the value of the namerecord component
 
- 
professionReturns the value of theprofessionrecord component.- Returns:
- the value of the professionrecord component
 
- 
xppublic int xp()Returns the value of thexprecord component.- Returns:
- the value of the xprecord component
 
- 
healthpublic float health()Returns the value of thehealthrecord component.- Returns:
- the value of the healthrecord component
 
- 
maxHealthpublic float maxHealth()Returns the value of themaxHealthrecord component.- Returns:
- the value of the maxHealthrecord component
 
- 
posReturns the value of theposrecord component.- Returns:
- the value of the posrecord component
 
- 
inventoryReturns the value of theinventoryrecord component.- Returns:
- the value of the inventoryrecord component
 
- 
pathReturns the value of thepathrecord component.- Returns:
- the value of the pathrecord component
 
- 
wantsGolempublic boolean wantsGolem()Returns the value of thewantsGolemrecord component.- Returns:
- the value of the wantsGolemrecord component
 
- 
angerLevelpublic int angerLevel()Returns the value of theangerLevelrecord component.- Returns:
- the value of the angerLevelrecord component
 
- 
activitiesReturns the value of theactivitiesrecord component.- Returns:
- the value of the activitiesrecord component
 
- 
behaviorsReturns the value of thebehaviorsrecord component.- Returns:
- the value of the behaviorsrecord component
 
- 
memoriesReturns the value of thememoriesrecord component.- Returns:
- the value of the memoriesrecord component
 
- 
gossipsReturns the value of thegossipsrecord component.- Returns:
- the value of the gossipsrecord component
 
- 
poisReturns the value of thepoisrecord component.- Returns:
- the value of the poisrecord component
 
- 
potentialPoisReturns the value of thepotentialPoisrecord component.- Returns:
- the value of the potentialPoisrecord component
 
 
-