Record Class EntityLockPacket.LockInfo
java.lang.Object
java.lang.Record
com.lightning.northstar.contraption.rocket.packet.EntityLockPacket.LockInfo
- Enclosing class:
EntityLockPacket
public static record EntityLockPacket.LockInfo(net.minecraft.world.phys.Vec3 offset, org.apache.commons.lang3.mutable.MutableInt ticks)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf, EntityLockPacket.LockInfo> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.net.minecraft.world.phys.Vec3offset()Returns the value of theoffsetrecord component.org.apache.commons.lang3.mutable.MutableIntticks()Returns the value of theticksrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
FOREVER
public static final int FOREVER- See Also:
-
STREAM_CODEC
public static final net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf,EntityLockPacket.LockInfo> STREAM_CODEC
-
-
Constructor Details
-
LockInfo
public LockInfo(net.minecraft.world.phys.Vec3 offset, int ticks) -
LockInfo
public LockInfo(net.minecraft.world.phys.Vec3 offset, org.apache.commons.lang3.mutable.MutableInt ticks) Creates an instance of aLockInforecord class.- Parameters:
offset- the value for theoffsetrecord componentticks- the value for theticksrecord 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). -
offset
public net.minecraft.world.phys.Vec3 offset()Returns the value of theoffsetrecord component.- Returns:
- the value of the
offsetrecord component
-
ticks
public org.apache.commons.lang3.mutable.MutableInt ticks()Returns the value of theticksrecord component.- Returns:
- the value of the
ticksrecord component
-