Record Class WoodSet.PrecedingCreativeEntries
java.lang.Object
java.lang.Record
net.rebel459.unified.api.data.set.WoodSet.PrecedingCreativeEntries
- Enclosing class:
WoodSet
public static record WoodSet.PrecedingCreativeEntries(Supplier<? extends net.minecraft.world.level.ItemLike> building, Supplier<? extends net.minecraft.world.level.ItemLike> natural, Supplier<? extends net.minecraft.world.level.ItemLike> functionalShelf, Supplier<? extends net.minecraft.world.level.ItemLike> functionalSign, @Nullable Supplier<? extends net.minecraft.world.level.ItemLike> utilities)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionPrecedingCreativeEntries(Supplier<? extends net.minecraft.world.level.ItemLike> building, Supplier<? extends net.minecraft.world.level.ItemLike> natural, Supplier<? extends net.minecraft.world.level.ItemLike> functionalShelf, Supplier<? extends net.minecraft.world.level.ItemLike> functionalSign, @Nullable Supplier<? extends net.minecraft.world.level.ItemLike> utilities) Creates an instance of aPrecedingCreativeEntriesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionSupplier<? extends net.minecraft.world.level.ItemLike> building()Returns the value of thebuildingrecord component.final booleanIndicates whether some other object is "equal to" this one.Supplier<? extends net.minecraft.world.level.ItemLike> Returns the value of thefunctionalShelfrecord component.Supplier<? extends net.minecraft.world.level.ItemLike> Returns the value of thefunctionalSignrecord component.final inthashCode()Returns a hash code value for this object.Supplier<? extends net.minecraft.world.level.ItemLike> natural()Returns the value of thenaturalrecord component.final StringtoString()Returns a string representation of this record class.@Nullable Supplier<? extends net.minecraft.world.level.ItemLike> Returns the value of theutilitiesrecord component.
-
Constructor Details
-
PrecedingCreativeEntries
public PrecedingCreativeEntries(Supplier<? extends net.minecraft.world.level.ItemLike> building, Supplier<? extends net.minecraft.world.level.ItemLike> natural, Supplier<? extends net.minecraft.world.level.ItemLike> functionalShelf, Supplier<? extends net.minecraft.world.level.ItemLike> functionalSign, @Nullable @Nullable Supplier<? extends net.minecraft.world.level.ItemLike> utilities) Creates an instance of aPrecedingCreativeEntriesrecord class.- Parameters:
building- the value for thebuildingrecord componentnatural- the value for thenaturalrecord componentfunctionalShelf- the value for thefunctionalShelfrecord componentfunctionalSign- the value for thefunctionalSignrecord componentutilities- the value for theutilitiesrecord 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). -
building
Returns the value of thebuildingrecord component.- Returns:
- the value of the
buildingrecord component
-
natural
Returns the value of thenaturalrecord component.- Returns:
- the value of the
naturalrecord component
-
functionalShelf
Returns the value of thefunctionalShelfrecord component.- Returns:
- the value of the
functionalShelfrecord component
-
functionalSign
Returns the value of thefunctionalSignrecord component.- Returns:
- the value of the
functionalSignrecord component
-
utilities
Returns the value of theutilitiesrecord component.- Returns:
- the value of the
utilitiesrecord component
-