Record Class SimpleItemGroupFactory
java.lang.Object
java.lang.Record
net.dillon.dillonlib.factory.item.SimpleItemGroupFactory
-
Constructor Summary
ConstructorsConstructorDescriptionSimpleItemGroupFactory(net.minecraft.resources.Identifier id, net.minecraft.world.level.ItemLike icon, Supplier<List<net.minecraft.world.item.ItemStack>> entries) Creates an instance of aSimpleItemGroupFactoryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionentries()Returns the value of theentriesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.net.minecraft.world.level.ItemLikeicon()Returns the value of theiconrecord component.net.minecraft.resources.Identifierid()Returns the value of theidrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SimpleItemGroupFactory
public SimpleItemGroupFactory(net.minecraft.resources.Identifier id, net.minecraft.world.level.ItemLike icon, Supplier<List<net.minecraft.world.item.ItemStack>> entries) Creates an instance of aSimpleItemGroupFactoryrecord class.- Parameters:
id- the value for theidrecord componenticon- the value for theiconrecord componententries- the value for theentriesrecord 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). -
id
public net.minecraft.resources.Identifier id()Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
icon
public net.minecraft.world.level.ItemLike icon()Returns the value of theiconrecord component.- Returns:
- the value of the
iconrecord component
-
entries
-