Record Class NameSignInfo.Entry
java.lang.Object
java.lang.Record
purplecreate.tramways.content.stationDeco.nameSign.info.NameSignInfo.Entry
- Enclosing class:
- NameSignInfo
public static record NameSignInfo.Entry(net.minecraft.world.entity.Display.TextDisplay.Align align, int offset, net.minecraft.world.item.DyeColor color)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<NameSignInfo.Entry>static final NameSignInfo.Entry -
Constructor Summary
ConstructorsConstructorDescriptionEntry(net.minecraft.world.entity.Display.TextDisplay.Align align, int offset, net.minecraft.world.item.DyeColor color) Creates an instance of aEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.entity.Display.TextDisplay.Alignalign()Returns the value of thealignrecord component.net.minecraft.world.item.DyeColorcolor()Returns the value of thecolorrecord component.final booleanIndicates whether some other object is "equal to" this one.forceCenteredIf(boolean value) final inthashCode()Returns a hash code value for this object.intoffset()Returns the value of theoffsetrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
DEFAULT
-
CODEC
-
-
Constructor Details
-
Entry
public Entry(net.minecraft.world.entity.Display.TextDisplay.Align align, int offset, net.minecraft.world.item.DyeColor color) Creates an instance of aEntryrecord class.- Parameters:
align- the value for thealignrecord componentoffset- the value for theoffsetrecord componentcolor- the value for thecolorrecord component
-
-
Method Details
-
forceCentered
-
forceCenteredIf
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
align
public net.minecraft.world.entity.Display.TextDisplay.Align align()Returns the value of thealignrecord component.- Returns:
- the value of the
alignrecord component
-
offset
public int offset()Returns the value of theoffsetrecord component.- Returns:
- the value of the
offsetrecord component
-
color
public net.minecraft.world.item.DyeColor color()Returns the value of thecolorrecord component.- Returns:
- the value of the
colorrecord component
-