Record Class StoneSet.PrecedingCreativeEntries
java.lang.Object
java.lang.Record
net.rebel459.unified.api.data.set.StoneSet.PrecedingCreativeEntries
- Enclosing class:
StoneSet
-
Constructor Summary
ConstructorsConstructorDescriptionPrecedingCreativeEntries(Supplier<? extends net.minecraft.world.level.ItemLike> building, @Nullable Supplier<? extends net.minecraft.world.level.ItemLike> natural) 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.final inthashCode()Returns a hash code value for this object.@Nullable Supplier<? extends net.minecraft.world.level.ItemLike> natural()Returns the value of thenaturalrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PrecedingCreativeEntries
public PrecedingCreativeEntries(Supplier<? extends net.minecraft.world.level.ItemLike> building, @Nullable @Nullable Supplier<? extends net.minecraft.world.level.ItemLike> natural) Creates an instance of aPrecedingCreativeEntriesrecord class.- Parameters:
building- the value for thebuildingrecord componentnatural- the value for thenaturalrecord 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
-