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
Modifier and TypeFieldDescriptionThe field for theactivities
record component.private final int
The field for theangerLevel
record component.The field for thebehaviors
record component.The field for thegossips
record component.private final float
The field for thehealth
record component.private final int
The field for theid
record component.private final String
The field for theinventory
record component.private final float
The field for themaxHealth
record component.The field for thememories
record component.private final String
The field for thename
record component.private final Path
The field for thepath
record component.The field for thepois
record component.private final Vec3
The field for thepos
record component.The field for thepotentialPois
record component.private final String
The field for theprofession
record component.private final UUID
The field for theuuid
record component.private final boolean
The field for thewantsGolem
record component.private final int
The field for thexp
record component. -
Constructor Summary
ConstructorDescriptionBrainDump
(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 aBrainDump
record class.BrainDump
(FriendlyByteBuf p_298042_) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theactivities
record component.int
Returns the value of theangerLevel
record component.Returns the value of thebehaviors
record component.final boolean
Indicates whether some other object is "equal to" this one.gossips()
Returns the value of thegossips
record component.final int
hashCode()
Returns a hash code value for this object.boolean
boolean
hasPotentialPoi
(BlockPos p_300342_) float
health()
Returns the value of thehealth
record component.int
id()
Returns the value of theid
record component.Returns the value of theinventory
record component.float
Returns the value of themaxHealth
record component.memories()
Returns the value of thememories
record component.name()
Returns the value of thename
record component.path()
Returns the value of thepath
record component.pois()
Returns the value of thepois
record component.pos()
Returns the value of thepos
record component.Returns the value of thepotentialPois
record component.Returns the value of theprofession
record component.final String
toString()
Returns a string representation of this record class.uuid()
Returns the value of theuuid
record component.boolean
Returns the value of thewantsGolem
record component.void
write
(FriendlyByteBuf p_299431_) int
xp()
Returns the value of thexp
record component.
-
Field Details
-
uuid
The field for theuuid
record component. -
id
private final int idThe field for theid
record component. -
name
The field for thename
record component. -
profession
The field for theprofession
record component. -
xp
private final int xpThe field for thexp
record component. -
health
private final float healthThe field for thehealth
record component. -
maxHealth
private final float maxHealthThe field for themaxHealth
record component. -
pos
The field for thepos
record component. -
inventory
The field for theinventory
record component. -
path
The field for thepath
record component. -
wantsGolem
private final boolean wantsGolemThe field for thewantsGolem
record component. -
angerLevel
private final int angerLevelThe field for theangerLevel
record component. -
activities
The field for theactivities
record component. -
behaviors
The field for thebehaviors
record component. -
memories
The field for thememories
record component. -
gossips
The field for thegossips
record component. -
pois
The field for thepois
record component. -
potentialPois
The field for thepotentialPois
record 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 aBrainDump
record class.- Parameters:
uuid
- the value for theuuid
record componentid
- the value for theid
record componentname
- the value for thename
record componentprofession
- the value for theprofession
record componentxp
- the value for thexp
record componenthealth
- the value for thehealth
record componentmaxHealth
- the value for themaxHealth
record componentpos
- the value for thepos
record componentinventory
- the value for theinventory
record componentpath
- the value for thepath
record componentwantsGolem
- the value for thewantsGolem
record componentangerLevel
- the value for theangerLevel
record componentactivities
- the value for theactivities
record componentbehaviors
- the value for thebehaviors
record componentmemories
- the value for thememories
record componentgossips
- the value for thegossips
record componentpois
- the value for thepois
record componentpotentialPois
- the value for thepotentialPois
record 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 theuuid
record component.- Returns:
- the value of the
uuid
record component
-
id
public int id()Returns the value of theid
record component.- Returns:
- the value of the
id
record component
-
name
Returns the value of thename
record component.- Returns:
- the value of the
name
record component
-
profession
Returns the value of theprofession
record component.- Returns:
- the value of the
profession
record component
-
xp
public int xp()Returns the value of thexp
record component.- Returns:
- the value of the
xp
record component
-
health
public float health()Returns the value of thehealth
record component.- Returns:
- the value of the
health
record component
-
maxHealth
public float maxHealth()Returns the value of themaxHealth
record component.- Returns:
- the value of the
maxHealth
record component
-
pos
Returns the value of thepos
record component.- Returns:
- the value of the
pos
record component
-
inventory
Returns the value of theinventory
record component.- Returns:
- the value of the
inventory
record component
-
path
Returns the value of thepath
record component.- Returns:
- the value of the
path
record component
-
wantsGolem
public boolean wantsGolem()Returns the value of thewantsGolem
record component.- Returns:
- the value of the
wantsGolem
record component
-
angerLevel
public int angerLevel()Returns the value of theangerLevel
record component.- Returns:
- the value of the
angerLevel
record component
-
activities
Returns the value of theactivities
record component.- Returns:
- the value of the
activities
record component
-
behaviors
Returns the value of thebehaviors
record component.- Returns:
- the value of the
behaviors
record component
-
memories
Returns the value of thememories
record component.- Returns:
- the value of the
memories
record component
-
gossips
Returns the value of thegossips
record component.- Returns:
- the value of the
gossips
record component
-
pois
Returns the value of thepois
record component.- Returns:
- the value of the
pois
record component
-
potentialPois
Returns the value of thepotentialPois
record component.- Returns:
- the value of the
potentialPois
record component
-