Record Class RecipeStage
java.lang.Object
java.lang.Record
com.github.darksoulq.ner.model.RecipeStage
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionRecipeStage(Map<Integer, List<org.bukkit.inventory.ItemStack>> slots, Map<org.bukkit.inventory.ItemStack, String> probabilities, List<PagedSection> pagedSections, com.github.darksoulq.abyssallib.server.resource.asset.Font.TextureGlyph texture, int offset) Creates an instance of aRecipeStagerecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic RecipeStage.Builderbuilder(com.github.darksoulq.abyssallib.server.resource.asset.Font.TextureGlyph texture, int offset) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intoffset()Returns the value of theoffsetrecord component.Returns the value of thepagedSectionsrecord component.Returns the value of theprobabilitiesrecord component.slots()Returns the value of theslotsrecord component.com.github.darksoulq.abyssallib.server.resource.asset.Font.TextureGlyphtexture()Returns the value of thetexturerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RecipeStage
public RecipeStage(Map<Integer, List<org.bukkit.inventory.ItemStack>> slots, Map<org.bukkit.inventory.ItemStack, String> probabilities, List<PagedSection> pagedSections, com.github.darksoulq.abyssallib.server.resource.asset.Font.TextureGlyph texture, int offset) Creates an instance of aRecipeStagerecord class.- Parameters:
slots- the value for theslotsrecord componentprobabilities- the value for theprobabilitiesrecord componentpagedSections- the value for thepagedSectionsrecord componenttexture- the value for thetexturerecord componentoffset- the value for theoffsetrecord component
-
-
Method Details
-
builder
public static RecipeStage.Builder builder(com.github.darksoulq.abyssallib.server.resource.asset.Font.TextureGlyph texture, int offset) -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
slots
-
probabilities
-
pagedSections
Returns the value of thepagedSectionsrecord component.- Returns:
- the value of the
pagedSectionsrecord component
-
texture
public com.github.darksoulq.abyssallib.server.resource.asset.Font.TextureGlyph texture()Returns the value of thetexturerecord component.- Returns:
- the value of the
texturerecord component
-
offset
public int offset()Returns the value of theoffsetrecord component.- Returns:
- the value of the
offsetrecord component
-