Record Class Textures

java.lang.Object
java.lang.Record
com.wdiscute.starcatcher.fish.Textures

public record Textures(com.wdiscute.utils.ScreenUtils.Image tank, com.wdiscute.utils.ScreenUtils.Image rod, com.wdiscute.utils.ScreenUtils.Image handle, com.wdiscute.utils.ScreenUtils.Image buttons, com.wdiscute.utils.ScreenUtils.Image treasure, com.wdiscute.utils.ScreenUtils.Image wheels) extends Record
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final com.wdiscute.utils.ScreenUtils.Image
     
    static final com.wdiscute.utils.ScreenUtils.Image
     
    static final com.mojang.serialization.Codec<Textures>
     
    static final com.wdiscute.utils.ScreenUtils.Image
     
    static final Textures
     
    static final com.wdiscute.utils.ScreenUtils.Image
     
    static final com.wdiscute.utils.ScreenUtils.Image
     
    static final com.wdiscute.utils.ScreenUtils.Image
     
    static final com.wdiscute.utils.ScreenUtils.Image
     
    static final com.wdiscute.utils.ScreenUtils.Image
     
    static final com.wdiscute.utils.ScreenUtils.Image
     
    static final com.wdiscute.utils.ScreenUtils.Image
     
    static final com.wdiscute.utils.ScreenUtils.Image
     
    static final net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf,Textures>
     
    static final com.wdiscute.utils.ScreenUtils.Image
     
    static final com.wdiscute.utils.ScreenUtils.Image
     
    static final com.wdiscute.utils.ScreenUtils.Image
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Textures(com.wdiscute.utils.ScreenUtils.Image tank, com.wdiscute.utils.ScreenUtils.Image rod, com.wdiscute.utils.ScreenUtils.Image handle, com.wdiscute.utils.ScreenUtils.Image buttons, com.wdiscute.utils.ScreenUtils.Image treasure, com.wdiscute.utils.ScreenUtils.Image wheels)
    Creates an instance of a Textures record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    com.wdiscute.utils.ScreenUtils.Image
    Returns the value of the buttons record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    com.wdiscute.utils.ScreenUtils.Image
    Returns the value of the handle record component.
    final int
    Returns a hash code value for this object.
    com.wdiscute.utils.ScreenUtils.Image
    rod()
    Returns the value of the rod record component.
    com.wdiscute.utils.ScreenUtils.Image
    Returns the value of the tank record component.
    final String
    Returns a string representation of this record class.
    com.wdiscute.utils.ScreenUtils.Image
    Returns the value of the treasure record component.
    com.wdiscute.utils.ScreenUtils.Image
    Returns the value of the wheels record component.
    withTank(com.wdiscute.utils.ScreenUtils.Image tank)
     

    Methods inherited from class java.lang.Object

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

    • SURFACE

      public static final com.wdiscute.utils.ScreenUtils.Image SURFACE
    • SKY

      public static final com.wdiscute.utils.ScreenUtils.Image SKY
    • LAVA_OVERWORLD

      public static final com.wdiscute.utils.ScreenUtils.Image LAVA_OVERWORLD
    • NETHER

      public static final com.wdiscute.utils.ScreenUtils.Image NETHER
    • CAVE

      public static final com.wdiscute.utils.ScreenUtils.Image CAVE
    • ICY

      public static final com.wdiscute.utils.ScreenUtils.Image ICY
    • DEEP_DARK

      public static final com.wdiscute.utils.ScreenUtils.Image DEEP_DARK
    • END

      public static final com.wdiscute.utils.ScreenUtils.Image END
    • END_VOID

      public static final com.wdiscute.utils.ScreenUtils.Image END_VOID
    • ROD

      public static final com.wdiscute.utils.ScreenUtils.Image ROD
    • HANDLE

      public static final com.wdiscute.utils.ScreenUtils.Image HANDLE
    • BUTTONS

      public static final com.wdiscute.utils.ScreenUtils.Image BUTTONS
    • TREASURE

      public static final com.wdiscute.utils.ScreenUtils.Image TREASURE
    • WHEELS

      public static final com.wdiscute.utils.ScreenUtils.Image WHEELS
    • DEFAULT

      public static final Textures DEFAULT
    • CODEC

      public static final com.mojang.serialization.Codec<Textures> CODEC
    • STREAM_CODEC

      public static final net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf,Textures> STREAM_CODEC
  • Constructor Details

    • Textures

      public Textures(com.wdiscute.utils.ScreenUtils.Image tank, com.wdiscute.utils.ScreenUtils.Image rod, com.wdiscute.utils.ScreenUtils.Image handle, com.wdiscute.utils.ScreenUtils.Image buttons, com.wdiscute.utils.ScreenUtils.Image treasure, com.wdiscute.utils.ScreenUtils.Image wheels)
      Creates an instance of a Textures record class.
      Parameters:
      tank - the value for the tank record component
      rod - the value for the rod record component
      handle - the value for the handle record component
      buttons - the value for the buttons record component
      treasure - the value for the treasure record component
      wheels - the value for the wheels record component
  • Method Details

    • withTank

      public Textures withTank(com.wdiscute.utils.ScreenUtils.Image tank)
    • 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.
    • tank

      public com.wdiscute.utils.ScreenUtils.Image tank()
      Returns the value of the tank record component.
      Returns:
      the value of the tank record component
    • rod

      public com.wdiscute.utils.ScreenUtils.Image rod()
      Returns the value of the rod record component.
      Returns:
      the value of the rod record component
    • handle

      public com.wdiscute.utils.ScreenUtils.Image handle()
      Returns the value of the handle record component.
      Returns:
      the value of the handle record component
    • buttons

      public com.wdiscute.utils.ScreenUtils.Image buttons()
      Returns the value of the buttons record component.
      Returns:
      the value of the buttons record component
    • treasure

      public com.wdiscute.utils.ScreenUtils.Image treasure()
      Returns the value of the treasure record component.
      Returns:
      the value of the treasure record component
    • wheels

      public com.wdiscute.utils.ScreenUtils.Image wheels()
      Returns the value of the wheels record component.
      Returns:
      the value of the wheels record component