Package gay.object.hexdebug.api.splicing
Record Class SplicingTableIotaClientView
java.lang.Object
java.lang.Record
gay.object.hexdebug.api.splicing.SplicingTableIotaClientView
- Record Components:
tag- The raw iota NBT.name- The formatted name of the iota for use in tooltips.hexpatternSource- The iota converted to a plain string in.hexpatternformat.index- The index of this iota in the list.depth- The number of unclosed Introspection patterns preceding this iota.
public record SplicingTableIotaClientView(@NotNull net.minecraft.nbt.CompoundTag tag, @NotNull net.minecraft.network.chat.Component name, @NotNull String hexpatternSource, int index, int depth)
extends Record
A client-side representation of an iota in the Splicing Table's main list.
NOTE: Consumers should not construct this class themselves, as its fields may change at any time. All constructors are annotated with
NOTE: Consumers should not construct this class themselves, as its fields may change at any time. All constructors are annotated with
ApiStatus.Internal to indicate this.-
Constructor Summary
ConstructorsConstructorDescriptionSplicingTableIotaClientView(@NotNull at.petrak.hexcasting.api.casting.iota.Iota iota, @NotNull at.petrak.hexcasting.api.casting.eval.CastingEnvironment env, int index, int depth) SplicingTableIotaClientView(@NotNull net.minecraft.nbt.CompoundTag tag, @NotNull net.minecraft.network.chat.Component name, @NotNull String hexpatternSource, int index, int depth) Creates an instance of aSplicingTableIotaClientViewrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintdepth()Returns the value of thedepthrecord component.final booleanIndicates whether some other object is "equal to" this one.@Nullable net.minecraft.nbt.TaggetData()final inthashCode()Returns a hash code value for this object.@NotNull StringReturns the value of thehexpatternSourcerecord component.intindex()Returns the value of theindexrecord component.@NotNull net.minecraft.network.chat.Componentname()Returns the value of thenamerecord component.@NotNull net.minecraft.nbt.CompoundTagtag()Returns the value of thetagrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SplicingTableIotaClientView
@Internal public SplicingTableIotaClientView(@NotNull @NotNull net.minecraft.nbt.CompoundTag tag, @NotNull @NotNull net.minecraft.network.chat.Component name, @NotNull @NotNull String hexpatternSource, int index, int depth) Creates an instance of aSplicingTableIotaClientViewrecord class.- Parameters:
tag- the value for thetagrecord componentname- the value for thenamerecord componenthexpatternSource- the value for thehexpatternSourcerecord componentindex- the value for theindexrecord componentdepth- the value for thedepthrecord component
-
SplicingTableIotaClientView
@Internal public SplicingTableIotaClientView(@NotNull @NotNull at.petrak.hexcasting.api.casting.iota.Iota iota, @NotNull @NotNull at.petrak.hexcasting.api.casting.eval.CastingEnvironment env, int index, int depth)
-
-
Method Details
-
getData
@Nullable public @Nullable net.minecraft.nbt.Tag getData() -
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 '=='. -
tag
@NotNull public @NotNull net.minecraft.nbt.CompoundTag tag()Returns the value of thetagrecord component.- Returns:
- the value of the
tagrecord component
-
name
@NotNull public @NotNull net.minecraft.network.chat.Component name()Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
hexpatternSource
Returns the value of thehexpatternSourcerecord component.- Returns:
- the value of the
hexpatternSourcerecord component
-
index
public int index()Returns the value of theindexrecord component.- Returns:
- the value of the
indexrecord component
-
depth
public int depth()Returns the value of thedepthrecord component.- Returns:
- the value of the
depthrecord component
-