Record Class BreezeDebugPayload.BreezeInfo
java.lang.Object
java.lang.Record
net.minecraft.network.protocol.common.custom.BreezeDebugPayload.BreezeInfo
- Enclosing class:
BreezeDebugPayload
-
Field Summary
-
Constructor Summary
ConstructorDescriptionBreezeInfo
(UUID uuid, int id, Integer attackTarget, BlockPos jumpTarget) Creates an instance of aBreezeInfo
record class.BreezeInfo
(FriendlyByteBuf p_311866_) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theattackTarget
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.int
id()
Returns the value of theid
record component.Returns the value of thejumpTarget
record component.toString()
Returns a string representation of this record class.uuid()
Returns the value of theuuid
record component.void
write
(FriendlyByteBuf p_311804_)
-
Field Details
-
uuid
The field for theuuid
record component. -
id
private final int idThe field for theid
record component. -
attackTarget
The field for theattackTarget
record component. -
jumpTarget
The field for thejumpTarget
record component.
-
-
Constructor Details
-
BreezeInfo
-
BreezeInfo
Creates an instance of aBreezeInfo
record class.- Parameters:
uuid
- the value for theuuid
record componentid
- the value for theid
record componentattackTarget
- the value for theattackTarget
record componentjumpTarget
- the value for thejumpTarget
record component
-
-
Method Details
-
write
-
generateName
-
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
-
attackTarget
Returns the value of theattackTarget
record component.- Returns:
- the value of the
attackTarget
record component
-
jumpTarget
Returns the value of thejumpTarget
record component.- Returns:
- the value of the
jumpTarget
record component
-