Package com.wdiscute.starcatcher.fish
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
FieldsModifier and TypeFieldDescriptionstatic final com.wdiscute.utils.ScreenUtils.Imagestatic final com.wdiscute.utils.ScreenUtils.Imagestatic final com.mojang.serialization.Codec<Textures> static final com.wdiscute.utils.ScreenUtils.Imagestatic final Texturesstatic final com.wdiscute.utils.ScreenUtils.Imagestatic final com.wdiscute.utils.ScreenUtils.Imagestatic final com.wdiscute.utils.ScreenUtils.Imagestatic final com.wdiscute.utils.ScreenUtils.Imagestatic final com.wdiscute.utils.ScreenUtils.Imagestatic final com.wdiscute.utils.ScreenUtils.Imagestatic final com.wdiscute.utils.ScreenUtils.Imagestatic final com.wdiscute.utils.ScreenUtils.Imagestatic final net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf, Textures> static final com.wdiscute.utils.ScreenUtils.Imagestatic final com.wdiscute.utils.ScreenUtils.Imagestatic final com.wdiscute.utils.ScreenUtils.Image -
Constructor Summary
ConstructorsConstructorDescriptionTextures(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 aTexturesrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncom.wdiscute.utils.ScreenUtils.Imagebuttons()Returns the value of thebuttonsrecord component.final booleanIndicates whether some other object is "equal to" this one.com.wdiscute.utils.ScreenUtils.Imagehandle()Returns the value of thehandlerecord component.final inthashCode()Returns a hash code value for this object.com.wdiscute.utils.ScreenUtils.Imagerod()Returns the value of therodrecord component.com.wdiscute.utils.ScreenUtils.Imagetank()Returns the value of thetankrecord component.final StringtoString()Returns a string representation of this record class.com.wdiscute.utils.ScreenUtils.Imagetreasure()Returns the value of thetreasurerecord component.com.wdiscute.utils.ScreenUtils.Imagewheels()Returns the value of thewheelsrecord component.withTank(com.wdiscute.utils.ScreenUtils.Image tank)
-
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
-
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 aTexturesrecord class.- Parameters:
tank- the value for thetankrecord componentrod- the value for therodrecord componenthandle- the value for thehandlerecord componentbuttons- the value for thebuttonsrecord componenttreasure- the value for thetreasurerecord componentwheels- the value for thewheelsrecord component
-
-
Method Details
-
withTank
-
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. -
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. -
equals
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 withObjects::equals(Object,Object). -
tank
public com.wdiscute.utils.ScreenUtils.Image tank()Returns the value of thetankrecord component.- Returns:
- the value of the
tankrecord component
-
rod
public com.wdiscute.utils.ScreenUtils.Image rod()Returns the value of therodrecord component.- Returns:
- the value of the
rodrecord component
-
handle
public com.wdiscute.utils.ScreenUtils.Image handle()Returns the value of thehandlerecord component.- Returns:
- the value of the
handlerecord component
-
buttons
public com.wdiscute.utils.ScreenUtils.Image buttons()Returns the value of thebuttonsrecord component.- Returns:
- the value of the
buttonsrecord component
-
treasure
public com.wdiscute.utils.ScreenUtils.Image treasure()Returns the value of thetreasurerecord component.- Returns:
- the value of the
treasurerecord component
-
wheels
public com.wdiscute.utils.ScreenUtils.Image wheels()Returns the value of thewheelsrecord component.- Returns:
- the value of the
wheelsrecord component
-