Package net.minecraft.util.debug
Record Class DebugBreezeInfo
java.lang.Object
java.lang.Record
net.minecraft.util.debug.DebugBreezeInfo
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe field for theattackTargetrecord component.The field for thejumpTargetrecord component.static final StreamCodec<io.netty.buffer.ByteBuf, DebugBreezeInfo> -
Constructor Summary
ConstructorsConstructorDescriptionDebugBreezeInfo(Optional<Integer> attackTarget, Optional<BlockPos> jumpTarget) Creates an instance of aDebugBreezeInforecord class. -
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.Returns the value of thejumpTargetrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
attackTarget
The field for theattackTargetrecord component. -
jumpTarget
The field for thejumpTargetrecord component. -
STREAM_CODEC
-
-
Constructor Details
-
DebugBreezeInfo
Creates an instance of aDebugBreezeInforecord class.- Parameters:
attackTarget- the value for theattackTargetrecord componentjumpTarget- the value for thejumpTargetrecord component
-
-
Method Details
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
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
-