Record Class ColoredItemSet.PrecedingCreativeEntries
java.lang.Object
java.lang.Record
net.rebel459.unified.api.data.set.ColoredItemSet.PrecedingCreativeEntries
- Enclosing class:
ColoredItemSet
public static record ColoredItemSet.PrecedingCreativeEntries(com.mojang.datafixers.util.Pair<net.minecraft.resources.ResourceKey<net.minecraft.world.item.CreativeModeTab>, Supplier<? extends net.minecraft.world.level.ItemLike>> firstTab, @Nullable com.mojang.datafixers.util.Pair<net.minecraft.resources.ResourceKey<net.minecraft.world.item.CreativeModeTab>, Supplier<? extends net.minecraft.world.level.ItemLike>> secondTab)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionPrecedingCreativeEntries(com.mojang.datafixers.util.Pair<net.minecraft.resources.ResourceKey<net.minecraft.world.item.CreativeModeTab>, Supplier<? extends net.minecraft.world.level.ItemLike>> firstTab, @Nullable com.mojang.datafixers.util.Pair<net.minecraft.resources.ResourceKey<net.minecraft.world.item.CreativeModeTab>, Supplier<? extends net.minecraft.world.level.ItemLike>> secondTab) Creates an instance of aPrecedingCreativeEntriesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.com.mojang.datafixers.util.Pair<net.minecraft.resources.ResourceKey<net.minecraft.world.item.CreativeModeTab>, Supplier<? extends net.minecraft.world.level.ItemLike>> firstTab()Returns the value of thefirstTabrecord component.final inthashCode()Returns a hash code value for this object.@Nullable com.mojang.datafixers.util.Pair<net.minecraft.resources.ResourceKey<net.minecraft.world.item.CreativeModeTab>, Supplier<? extends net.minecraft.world.level.ItemLike>> Returns the value of thesecondTabrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PrecedingCreativeEntries
public PrecedingCreativeEntries(com.mojang.datafixers.util.Pair<net.minecraft.resources.ResourceKey<net.minecraft.world.item.CreativeModeTab>, Supplier<? extends net.minecraft.world.level.ItemLike>> firstTab, @Nullable @Nullable com.mojang.datafixers.util.Pair<net.minecraft.resources.ResourceKey<net.minecraft.world.item.CreativeModeTab>, Supplier<? extends net.minecraft.world.level.ItemLike>> secondTab) Creates an instance of aPrecedingCreativeEntriesrecord class.- Parameters:
firstTab- the value for thefirstTabrecord componentsecondTab- the value for thesecondTabrecord component
-
-
Method Details
-
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 withObjects::equals(Object,Object). -
firstTab
public com.mojang.datafixers.util.Pair<net.minecraft.resources.ResourceKey<net.minecraft.world.item.CreativeModeTab>, Supplier<? extends net.minecraft.world.level.ItemLike>> firstTab()Returns the value of thefirstTabrecord component.- Returns:
- the value of the
firstTabrecord component
-
secondTab
@Nullable public @Nullable com.mojang.datafixers.util.Pair<net.minecraft.resources.ResourceKey<net.minecraft.world.item.CreativeModeTab>, Supplier<? extends net.minecraft.world.level.ItemLike>> secondTab()Returns the value of thesecondTabrecord component.- Returns:
- the value of the
secondTabrecord component
-