Record Class ArmatureCommandPayload

java.lang.Object
java.lang.Record
net.ixdarklord.coolcatcanvas.internal.armature.ArmatureCommandPayload
All Implemented Interfaces:
net.minecraft.network.protocol.common.custom.CustomPacketPayload

public record ArmatureCommandPayload(ArmatureCommandPayload.Target target, int entityId, net.minecraft.core.BlockPos pos, boolean offhand, ArmatureCommandPayload.Action action, String layer, @Nullable Motion motion, float fade, String variable, double value) extends Record implements net.minecraft.network.protocol.common.custom.CustomPacketPayload
The server telling clients to do something to an armature: play a motion on a layer, stop a layer, or set a Molang variable. The armature belongs to an entity, a block entity, or the stack in an entity's hand.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
     
    static enum 
     

    Nested classes/interfaces inherited from interface net.minecraft.network.protocol.common.custom.CustomPacketPayload

    net.minecraft.network.protocol.common.custom.CustomPacketPayload.FallbackProvider<B>, net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<T>, net.minecraft.network.protocol.common.custom.CustomPacketPayload.TypeAndCodec<B,T>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, ArmatureCommandPayload>
     
    static final net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<ArmatureCommandPayload>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    ArmatureCommandPayload(ArmatureCommandPayload.Target target, int entityId, net.minecraft.core.BlockPos pos, boolean offhand, ArmatureCommandPayload.Action action, String layer, @Nullable Motion motion, float fade, String variable, double value)
    Creates an instance of a ArmatureCommandPayload record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the value of the action record component.
    int
    Returns the value of the entityId record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    float
    Returns the value of the fade record component.
    final int
    Returns a hash code value for this object.
    Returns the value of the layer record component.
    @Nullable Motion
    Returns the value of the motion record component.
    boolean
    Returns the value of the offhand record component.
    net.minecraft.core.BlockPos
    pos()
    Returns the value of the pos record component.
    Returns the value of the target record component.
    final String
    Returns a string representation of this record class.
    net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<? extends net.minecraft.network.protocol.common.custom.CustomPacketPayload>
     
    double
    Returns the value of the value record component.
    Returns the value of the variable record component.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • TYPE

      public static final net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<ArmatureCommandPayload> TYPE
    • STREAM_CODEC

      public static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, ArmatureCommandPayload> STREAM_CODEC
  • Constructor Details

    • ArmatureCommandPayload

      public ArmatureCommandPayload(ArmatureCommandPayload.Target target, int entityId, net.minecraft.core.BlockPos pos, boolean offhand, ArmatureCommandPayload.Action action, String layer, @Nullable @Nullable Motion motion, float fade, String variable, double value)
      Creates an instance of a ArmatureCommandPayload record class.
      Parameters:
      target - the value for the target record component
      entityId - the value for the entityId record component
      pos - the value for the pos record component
      offhand - the value for the offhand record component
      action - the value for the action record component
      layer - the value for the layer record component
      motion - the value for the motion record component
      fade - the value for the fade record component
      variable - the value for the variable record component
      value - the value for the value record component
  • Method Details

    • type

      public net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<? extends net.minecraft.network.protocol.common.custom.CustomPacketPayload> type()
      Specified by:
      type in interface net.minecraft.network.protocol.common.custom.CustomPacketPayload
    • 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      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.
    • target

      Returns the value of the target record component.
      Returns:
      the value of the target record component
    • entityId

      public int entityId()
      Returns the value of the entityId record component.
      Returns:
      the value of the entityId record component
    • pos

      public net.minecraft.core.BlockPos pos()
      Returns the value of the pos record component.
      Returns:
      the value of the pos record component
    • offhand

      public boolean offhand()
      Returns the value of the offhand record component.
      Returns:
      the value of the offhand record component
    • action

      Returns the value of the action record component.
      Returns:
      the value of the action record component
    • layer

      public String layer()
      Returns the value of the layer record component.
      Returns:
      the value of the layer record component
    • motion

      @Nullable public @Nullable Motion motion()
      Returns the value of the motion record component.
      Returns:
      the value of the motion record component
    • fade

      public float fade()
      Returns the value of the fade record component.
      Returns:
      the value of the fade record component
    • variable

      public String variable()
      Returns the value of the variable record component.
      Returns:
      the value of the variable record component
    • value

      public double value()
      Returns the value of the value record component.
      Returns:
      the value of the value record component