Record Class BreezeDebugPayload.BreezeInfo
java.lang.Object
java.lang.Record
net.minecraft.network.protocol.common.custom.BreezeDebugPayload.BreezeInfo
- Enclosing class:
BreezeDebugPayload
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBreezeInfo(UUID uuid, int id, Integer attackTarget, BlockPos jumpTarget) Creates an instance of aBreezeInforecord class.BreezeInfo(FriendlyByteBuf p_311866_) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theattackTargetrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intid()Returns the value of theidrecord component.Returns the value of thejumpTargetrecord component.toString()Returns a string representation of this record class.uuid()Returns the value of theuuidrecord component.voidwrite(FriendlyByteBuf p_311804_)
-
Field Details
-
uuid
The field for theuuidrecord component. -
id
private final int idThe field for theidrecord component. -
attackTarget
The field for theattackTargetrecord component. -
jumpTarget
The field for thejumpTargetrecord component.
-
-
Constructor Details
-
BreezeInfo
-
BreezeInfo
Creates an instance of aBreezeInforecord class.- Parameters:
uuid- the value for theuuidrecord componentid- the value for theidrecord componentattackTarget- the value for theattackTargetrecord componentjumpTarget- the value for thejumpTargetrecord 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 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
-
attackTarget
Returns the value of theattackTargetrecord component.- Returns:
- the value of the
attackTargetrecord component
-
jumpTarget
Returns the value of thejumpTargetrecord component.- Returns:
- the value of the
jumpTargetrecord component
-