Record Class FoliosCoverTint
java.lang.Object
java.lang.Record
net.ixdarklord.folios.internal.client.FoliosCoverTint
- All Implemented Interfaces:
net.minecraft.client.color.item.ItemTintSource
public record FoliosCoverTint(boolean accent)
extends Record
implements net.minecraft.client.color.item.ItemTintSource
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<FoliosCoverTint> static final net.minecraft.resources.Identifier -
Constructor Summary
ConstructorsConstructorDescriptionFoliosCoverTint(boolean accent) Creates an instance of aFoliosCoverTintrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanaccent()Returns the value of theaccentrecord component.intcalculate(net.minecraft.world.item.ItemStack stack, @Nullable net.minecraft.client.multiplayer.ClientLevel level, @Nullable net.minecraft.world.entity.LivingEntity owner) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.com.mojang.serialization.MapCodec<FoliosCoverTint> type()
-
Field Details
-
TYPE
public static final net.minecraft.resources.Identifier TYPE -
MAP_CODEC
-
-
Constructor Details
-
FoliosCoverTint
public FoliosCoverTint(boolean accent) Creates an instance of aFoliosCoverTintrecord class.- Parameters:
accent- the value for theaccentrecord component
-
-
Method Details
-
calculate
public int calculate(net.minecraft.world.item.ItemStack stack, @Nullable net.minecraft.client.multiplayer.ClientLevel level, @Nullable net.minecraft.world.entity.LivingEntity owner) - Specified by:
calculatein interfacenet.minecraft.client.color.item.ItemTintSource
-
type
- Specified by:
typein interfacenet.minecraft.client.color.item.ItemTintSource
-
toString
-
hashCode
-
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 with thecomparemethod from their corresponding wrapper classes. -
accent
public boolean accent()Returns the value of theaccentrecord component.- Returns:
- the value of the
accentrecord component
-