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.display- The formatted iota for use in tooltips. For patterns (including those nested in lists), this is the pattern's name as calculated on the server, so that per-world patterns and special handlers can be displayed with their actual names instead of just the raw angle signature.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 display, @NotNull String hexpatternSource, int index, int depth, boolean isSubIota)
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 display, @NotNull String hexpatternSource, int index, int depth) SplicingTableIotaClientView(@NotNull net.minecraft.nbt.CompoundTag tag, @NotNull net.minecraft.network.chat.Component display, @NotNull String hexpatternSource, int index, int depth, boolean isSubIota) Creates an instance of aSplicingTableIotaClientViewrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintdepth()Returns the value of thedepthrecord component.@NotNull net.minecraft.network.chat.Componentdisplay()Returns the value of thedisplayrecord 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.booleanReturns the value of theisSubIotarecord component.static @NotNull SplicingTableIotaClientViewsubIota(@NotNull net.minecraft.nbt.CompoundTag tag) @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 display, @NotNull @NotNull String hexpatternSource, int index, int depth, boolean isSubIota) Creates an instance of aSplicingTableIotaClientViewrecord class.- Parameters:
tag- the value for thetagrecord componentdisplay- the value for thedisplayrecord componenthexpatternSource- the value for thehexpatternSourcerecord componentindex- the value for theindexrecord componentdepth- the value for thedepthrecord componentisSubIota- the value for theisSubIotarecord component
-
SplicingTableIotaClientView
@Internal public SplicingTableIotaClientView(@NotNull @NotNull net.minecraft.nbt.CompoundTag tag, @NotNull @NotNull net.minecraft.network.chat.Component display, @NotNull @NotNull String hexpatternSource, int index, int depth) -
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() -
subIota
@Internal @NotNull public static @NotNull SplicingTableIotaClientView subIota(@NotNull @NotNull net.minecraft.nbt.CompoundTag tag) -
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
-
display
@NotNull public @NotNull net.minecraft.network.chat.Component display()Returns the value of thedisplayrecord component.- Returns:
- the value of the
displayrecord 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
-
isSubIota
public boolean isSubIota()Returns the value of theisSubIotarecord component.- Returns:
- the value of the
isSubIotarecord component
-