Record Class ManipulateEntityMessage.ManipulateEntry

java.lang.Object
java.lang.Record
fr.ghostrider584.axiom.network.packet.client.ManipulateEntityMessage.ManipulateEntry
Enclosing class:
ManipulateEntityMessage

public static record ManipulateEntityMessage.ManipulateEntry(UUID uuid, @Nullable Set<ManipulateEntityMessage.Relative> relativeMovementSet, @Nullable net.minestom.server.coordinate.Pos position, net.kyori.adventure.nbt.BinaryTag nbt, ManipulateEntityMessage.PassengerManipulation passengerManipulation, List<UUID> passengers) extends Record
  • Constructor Details

    • ManipulateEntry

      public ManipulateEntry(UUID uuid, @Nullable @Nullable Set<ManipulateEntityMessage.Relative> relativeMovementSet, @Nullable @Nullable net.minestom.server.coordinate.Pos position, net.kyori.adventure.nbt.BinaryTag nbt, ManipulateEntityMessage.PassengerManipulation passengerManipulation, List<UUID> passengers)
      Creates an instance of a ManipulateEntry record class.
      Parameters:
      uuid - the value for the uuid record component
      relativeMovementSet - the value for the relativeMovementSet record component
      position - the value for the position record component
      nbt - the value for the nbt record component
      passengerManipulation - the value for the passengerManipulation record component
      passengers - the value for the passengers record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • uuid

      public UUID uuid()
      Returns the value of the uuid record component.
      Returns:
      the value of the uuid record component
    • relativeMovementSet

      @Nullable public @Nullable Set<ManipulateEntityMessage.Relative> relativeMovementSet()
      Returns the value of the relativeMovementSet record component.
      Returns:
      the value of the relativeMovementSet record component
    • position

      @Nullable public @Nullable net.minestom.server.coordinate.Pos position()
      Returns the value of the position record component.
      Returns:
      the value of the position record component
    • nbt

      public net.kyori.adventure.nbt.BinaryTag nbt()
      Returns the value of the nbt record component.
      Returns:
      the value of the nbt record component
    • passengerManipulation

      public ManipulateEntityMessage.PassengerManipulation passengerManipulation()
      Returns the value of the passengerManipulation record component.
      Returns:
      the value of the passengerManipulation record component
    • passengers

      public List<UUID> passengers()
      Returns the value of the passengers record component.
      Returns:
      the value of the passengers record component