Record Class ColoredBlockSet.PrecedingCreativeEntries
java.lang.Object
java.lang.Record
net.rebel459.unified.api.data.set.ColoredBlockSet.PrecedingCreativeEntries
- Enclosing class:
ColoredBlockSet
public static record ColoredBlockSet.PrecedingCreativeEntries(Supplier<? extends net.minecraft.world.level.ItemLike> colored, @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(Supplier<? extends net.minecraft.world.level.ItemLike> colored, @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 TypeMethodDescriptionSupplier<? extends net.minecraft.world.level.ItemLike> colored()Returns the value of thecoloredrecord component.final booleanIndicates whether some other object is "equal to" this one.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(Supplier<? extends net.minecraft.world.level.ItemLike> colored, @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:
colored- the value for thecoloredrecord 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). -
colored
Returns the value of thecoloredrecord component.- Returns:
- the value of the
coloredrecord 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
-