Record Class MsgNewWallScrollS2C

java.lang.Object
java.lang.Record
at.petrak.hexcasting.common.msgs.MsgNewWallScrollS2C
All Implemented Interfaces:
IMessage

public record MsgNewWallScrollS2C(net.minecraft.network.protocol.game.ClientboundAddEntityPacket inner, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction dir, net.minecraft.world.item.ItemStack scrollItem, boolean showsStrokeOrder, int blockSize) extends Record implements IMessage
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final net.minecraft.resources.ResourceLocation
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    MsgNewWallScrollS2C(net.minecraft.network.protocol.game.ClientboundAddEntityPacket inner, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction dir, net.minecraft.world.item.ItemStack scrollItem, boolean showsStrokeOrder, int blockSize)
    Creates an instance of a MsgNewWallScrollS2C record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the value of the blockSize record component.
    deserialize(net.minecraft.network.FriendlyByteBuf buf)
     
    net.minecraft.core.Direction
    dir()
    Returns the value of the dir record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    net.minecraft.resources.ResourceLocation
    Forge auto-assigns incrementing integers, Fabric requires us to declare an ID These are sent using vanilla's custom plugin channel system and thus are written to every single packet.
    static void
     
    final int
    Returns a hash code value for this object.
    net.minecraft.network.protocol.game.ClientboundAddEntityPacket
    Returns the value of the inner record component.
    net.minecraft.core.BlockPos
    pos()
    Returns the value of the pos record component.
    net.minecraft.world.item.ItemStack
    Returns the value of the scrollItem record component.
    void
    serialize(net.minecraft.network.FriendlyByteBuf buf)
     
    boolean
    Returns the value of the showsStrokeOrder record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface at.petrak.hexcasting.common.msgs.IMessage

    toBuf
  • Field Details

    • ID

      public static final net.minecraft.resources.ResourceLocation ID
  • Constructor Details

    • MsgNewWallScrollS2C

      public MsgNewWallScrollS2C(net.minecraft.network.protocol.game.ClientboundAddEntityPacket inner, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction dir, net.minecraft.world.item.ItemStack scrollItem, boolean showsStrokeOrder, int blockSize)
      Creates an instance of a MsgNewWallScrollS2C record class.
      Parameters:
      inner - the value for the inner record component
      pos - the value for the pos record component
      dir - the value for the dir record component
      scrollItem - the value for the scrollItem record component
      showsStrokeOrder - the value for the showsStrokeOrder record component
      blockSize - the value for the blockSize record component
  • Method Details

    • getFabricId

      public net.minecraft.resources.ResourceLocation getFabricId()
      Description copied from interface: IMessage
      Forge auto-assigns incrementing integers, Fabric requires us to declare an ID These are sent using vanilla's custom plugin channel system and thus are written to every single packet. So this ID tends to be more terse.
      Specified by:
      getFabricId in interface IMessage
    • serialize

      public void serialize(net.minecraft.network.FriendlyByteBuf buf)
      Specified by:
      serialize in interface IMessage
    • deserialize

      public static MsgNewWallScrollS2C deserialize(net.minecraft.network.FriendlyByteBuf buf)
    • handle

      public static void handle(MsgNewWallScrollS2C self)
    • 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 '=='.
      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.
    • inner

      public net.minecraft.network.protocol.game.ClientboundAddEntityPacket inner()
      Returns the value of the inner record component.
      Returns:
      the value of the inner 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
    • dir

      public net.minecraft.core.Direction dir()
      Returns the value of the dir record component.
      Returns:
      the value of the dir record component
    • scrollItem

      public net.minecraft.world.item.ItemStack scrollItem()
      Returns the value of the scrollItem record component.
      Returns:
      the value of the scrollItem record component
    • showsStrokeOrder

      public boolean showsStrokeOrder()
      Returns the value of the showsStrokeOrder record component.
      Returns:
      the value of the showsStrokeOrder record component
    • blockSize

      public int blockSize()
      Returns the value of the blockSize record component.
      Returns:
      the value of the blockSize record component