Record Class SetParticleDataPayload

java.lang.Object
java.lang.Record
com.mrbysco.particlemimicry.networking.SetParticleDataPayload
All Implemented Interfaces:
net.minecraft.network.protocol.common.custom.CustomPacketPayload

public record SetParticleDataPayload(net.minecraft.core.BlockPos pos, net.minecraft.resources.Identifier dimension, String particleType, String offset, String specialParameters, String delta, String speed, String count, String interval) extends Record implements net.minecraft.network.protocol.common.custom.CustomPacketPayload
  • Nested Class Summary

    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.FriendlyByteBuf, SetParticleDataPayload>
     
    static final net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<SetParticleDataPayload>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    SetParticleDataPayload(net.minecraft.core.BlockPos pos, net.minecraft.resources.Identifier dimension, String particleType, String offset, String specialParameters, String delta, String speed, String count, String interval)
    Creates an instance of a SetParticleDataPayload record class.
    SetParticleDataPayload(net.minecraft.network.FriendlyByteBuf packetBuffer)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the value of the count record component.
    Returns the value of the delta record component.
    net.minecraft.resources.Identifier
    Returns the value of the dimension record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    Returns the value of the interval record component.
    Returns the value of the offset record component.
    Returns the value of the particleType record component.
    net.minecraft.core.BlockPos
    pos()
    Returns the value of the pos record component.
    Returns the value of the specialParameters record component.
    Returns the value of the speed 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>
     
    void
    write(net.minecraft.network.FriendlyByteBuf buf)
     

    Methods inherited from class Object

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

    • CODEC

      public static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.FriendlyByteBuf, SetParticleDataPayload> CODEC
    • ID

      public static final net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<SetParticleDataPayload> ID
  • Constructor Details

    • SetParticleDataPayload

      public SetParticleDataPayload(net.minecraft.network.FriendlyByteBuf packetBuffer)
    • SetParticleDataPayload

      public SetParticleDataPayload(net.minecraft.core.BlockPos pos, net.minecraft.resources.Identifier dimension, String particleType, String offset, String specialParameters, String delta, String speed, String count, String interval)
      Creates an instance of a SetParticleDataPayload record class.
      Parameters:
      pos - the value for the pos record component
      dimension - the value for the dimension record component
      particleType - the value for the particleType record component
      offset - the value for the offset record component
      specialParameters - the value for the specialParameters record component
      delta - the value for the delta record component
      speed - the value for the speed record component
      count - the value for the count record component
      interval - the value for the interval record component
  • Method Details

    • write

      public void write(net.minecraft.network.FriendlyByteBuf buf)
    • 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. 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.
    • pos

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

      public net.minecraft.resources.Identifier dimension()
      Returns the value of the dimension record component.
      Returns:
      the value of the dimension record component
    • particleType

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

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

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

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

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

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

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