Record Class FireflyColor
java.lang.Object
java.lang.Record
net.frozenblock.wilderwild.entity.variant.FireflyColor
public record FireflyColor(net.minecraft.resources.ResourceLocation key, net.minecraft.resources.ResourceLocation texture)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final FireflyColorstatic final FireflyColorstatic final FireflyColorstatic final com.mojang.serialization.Codec<FireflyColor> static final FireflyColorstatic final FireflyColorstatic final FireflyColorstatic final FireflyColorstatic final FireflyColorstatic final FireflyColorstatic final FireflyColorstatic final FireflyColorstatic final FireflyColorstatic final FireflyColorstatic final FireflyColorstatic final FireflyColorstatic final FireflyColorstatic final FireflyColor -
Constructor Summary
ConstructorsConstructorDescriptionFireflyColor(@NotNull net.minecraft.resources.ResourceLocation key, @NotNull net.minecraft.resources.ResourceLocation texture) Creates an instance of aFireflyColorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static voidinit()@NotNull net.minecraft.resources.ResourceLocationkey()Returns the value of thekeyrecord component.static @NotNull FireflyColorregister(@NotNull net.minecraft.resources.ResourceLocation key, @NotNull net.minecraft.resources.ResourceLocation texture) @NotNull net.minecraft.resources.ResourceLocationtexture()Returns the value of thetexturerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
CODEC
-
BLACK
-
BLUE
-
BROWN
-
CYAN
-
GRAY
-
GREEN
-
LIGHT_BLUE
-
LIGHT_GRAY
-
LIME
-
MAGENTA
-
ON
-
ORANGE
-
PINK
-
PURPLE
-
RED
-
WHITE
-
YELLOW
-
-
Constructor Details
-
FireflyColor
public FireflyColor(@NotNull @NotNull net.minecraft.resources.ResourceLocation key, @NotNull @NotNull net.minecraft.resources.ResourceLocation texture) Creates an instance of aFireflyColorrecord class.- Parameters:
key- the value for thekeyrecord componenttexture- the value for thetexturerecord component
-
-
Method Details
-
register
@NotNull public static @NotNull FireflyColor register(@NotNull @NotNull net.minecraft.resources.ResourceLocation key, @NotNull @NotNull net.minecraft.resources.ResourceLocation texture) -
init
public static void init() -
key
@NotNull public @NotNull net.minecraft.resources.ResourceLocation key()Returns the value of thekeyrecord component.- Returns:
- the value of the
keyrecord component
-
texture
@NotNull public @NotNull net.minecraft.resources.ResourceLocation texture()Returns the value of thetexturerecord component.- Returns:
- the value of the
texturerecord component
-
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).
-