Package dev.latvian.mods.kubejs.recipe
Record Class AfterRecipesLoadedKubeEvent.MatchCx
java.lang.Object
java.lang.Record
dev.latvian.mods.kubejs.recipe.AfterRecipesLoadedKubeEvent.MatchCx
- All Implemented Interfaces:
RecipeMatchContext,RecipeLikeContext
- Enclosing class:
AfterRecipesLoadedKubeEvent
public static record AfterRecipesLoadedKubeEvent.MatchCx(dev.latvian.mods.rhino.Context cx, RegistryAccessContainer registries, RegistryOpsContainer ops, RecipeLikeKJS recipe)
extends Record
implements RecipeMatchContext
-
Nested Class Summary
Nested classes/interfaces inherited from interface dev.latvian.mods.kubejs.recipe.filter.RecipeMatchContext
RecipeMatchContext.Impl -
Constructor Summary
ConstructorsConstructorDescriptionMatchCx(dev.latvian.mods.rhino.Context cx, AfterRecipesLoadedKubeEvent event, RecipeLikeKJS recipe) MatchCx(dev.latvian.mods.rhino.Context cx, RegistryAccessContainer registries, RegistryOpsContainer ops, RecipeLikeKJS recipe) Creates an instance of aMatchCxrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondev.latvian.mods.rhino.Contextcx()Returns the value of thecxrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.ops()Returns the value of theopsrecord component.recipe()Returns the value of thereciperecord component.Returns the value of theregistriesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MatchCx
public MatchCx(dev.latvian.mods.rhino.Context cx, AfterRecipesLoadedKubeEvent event, RecipeLikeKJS recipe) -
MatchCx
public MatchCx(dev.latvian.mods.rhino.Context cx, RegistryAccessContainer registries, RegistryOpsContainer ops, RecipeLikeKJS recipe) Creates an instance of aMatchCxrecord class.- Parameters:
cx- the value for thecxrecord componentregistries- the value for theregistriesrecord componentops- the value for theopsrecord componentrecipe- the value for thereciperecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
cx
public dev.latvian.mods.rhino.Context cx()Returns the value of thecxrecord component.- Returns:
- the value of the
cxrecord component
-
registries
Returns the value of theregistriesrecord component.- Specified by:
registriesin interfaceRecipeLikeContext- Returns:
- the value of the
registriesrecord component
-
ops
Returns the value of theopsrecord component.- Specified by:
opsin interfaceRecipeLikeContext- Returns:
- the value of the
opsrecord component
-
recipe
Returns the value of thereciperecord component.- Specified by:
recipein interfaceRecipeLikeContext- Returns:
- the value of the
reciperecord component
-