Package net.minecraft
Record Class class_12007
java.lang.Object
java.lang.Record
net.minecraft.class_12007
- Record Components:
attackTarget-jumpTarget-
public record class_12007(Optional<Integer> attackTarget, Optional<BlockPos> jumpTarget)
extends Record
- Mappings:
Namespace Name named net/minecraft/class_12007intermediary net/minecraft/class_12007official bvenamed attackTargetintermediary comp_4852official bnamed jumpTargetintermediary comp_4853official c
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe field for theattackTargetrecord component.static final PacketCodec<ByteBuf, class_12007> The field for thejumpTargetrecord component. -
Constructor Summary
Constructors -
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. -
field_62846
- Mappings:
Namespace Name Mixin selector named field_62846Lnet/minecraft/class_12007;field_62846:Lnet/minecraft/network/codec/PacketCodec;intermediary field_62846Lnet/minecraft/class_12007;field_62846:Lnet/minecraft/class_9139;official aLbve;a:Laae;
-
-
Constructor Details
-
class_12007
-
-
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
-