Record Class NativeActorPickingMessage.Snapshot
java.lang.Object
java.lang.Record
net.raphimc.viabedrock.api.model.NativeActorPickingMessage.Snapshot
- All Implemented Interfaces:
NativeActorPickingMessage
- Enclosing interface:
NativeActorPickingMessage
public static record NativeActorPickingMessage.Snapshot(UUID owner, UUID lifetime, float reachPadding, List<NativeActorPickingMessage.Part> parts)
extends Record
implements NativeActorPickingMessage
Reach excludes this surface padding; authored picking boxes carry zero.
-
Nested Class Summary
Nested classes/interfaces inherited from interface NativeActorPickingMessage
NativeActorPickingMessage.Part, NativeActorPickingMessage.Remove, NativeActorPickingMessage.Snapshot -
Field Summary
Fields inherited from interface NativeActorPickingMessage
CHANNEL, MAX_PAYLOAD_BYTES, TYPE -
Constructor Summary
ConstructorsConstructorDescriptionSnapshot(UUID owner, UUID lifetime, float reachPadding, List<NativeActorPickingMessage.Part> parts) Creates an instance of aSnapshotrecord class. -
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.lifetime()Returns the value of thelifetimerecord component.owner()Returns the value of theownerrecord component.parts()Returns the value of thepartsrecord component.floatReturns the value of thereachPaddingrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Snapshot
public Snapshot(UUID owner, UUID lifetime, float reachPadding, List<NativeActorPickingMessage.Part> parts) Creates an instance of aSnapshotrecord class.- Parameters:
owner- the value for theownerrecord componentlifetime- the value for thelifetimerecord componentreachPadding- the value for thereachPaddingrecord componentparts- the value for thepartsrecord component
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
owner
Returns the value of theownerrecord component.- Specified by:
ownerin interfaceNativeActorPickingMessage- Returns:
- the value of the
ownerrecord component
-
lifetime
Returns the value of thelifetimerecord component.- Specified by:
lifetimein interfaceNativeActorPickingMessage- Returns:
- the value of the
lifetimerecord component
-
reachPadding
public float reachPadding()Returns the value of thereachPaddingrecord component.- Returns:
- the value of the
reachPaddingrecord component
-
parts
Returns the value of thepartsrecord component.- Returns:
- the value of the
partsrecord component
-