Record Class CauldronInteraction.InteractionMap
java.lang.Object
java.lang.Record
net.minecraft.core.cauldron.CauldronInteraction.InteractionMap
- Enclosing interface:
CauldronInteraction
public static record CauldronInteraction.InteractionMap(String name, Map<Item, CauldronInteraction> map)
extends Record
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionInteractionMap(String name, Map<Item, CauldronInteraction> map) Creates an instance of aInteractionMaprecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.map()Returns the value of themaprecord component.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
name
The field for thenamerecord component. -
map
The field for themaprecord component.
-
-
Constructor Details
-
InteractionMap
Creates an instance of aInteractionMaprecord class.- Parameters:
name- the value for thenamerecord componentmap- the value for themaprecord 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). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
map
Returns the value of themaprecord component.- Returns:
- the value of the
maprecord component
-