Package net.minecraft.recipe.input
Record Class CraftingRecipeInput.Positioned
java.lang.Object
java.lang.Record
net.minecraft.recipe.input.CraftingRecipeInput.Positioned
- Record Components:
input-left-top-
- Enclosing class:
CraftingRecipeInput
public static record CraftingRecipeInput.Positioned(CraftingRecipeInput input, int left, int top)
extends Record
- Mappings:
Namespace Name named net/minecraft/recipe/input/CraftingRecipeInput$Positionedintermediary net/minecraft/class_9694$class_9765official cyp$anamed inputintermediary comp_2795official bnamed leftintermediary comp_2796official cnamed topintermediary comp_2797official d
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final CraftingRecipeInput.Positionedprivate final CraftingRecipeInputThe field for theinputrecord component.private final intThe field for theleftrecord component.private final intThe field for thetoprecord component. -
Constructor Summary
Constructors -
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.input()Returns the value of theinputrecord component.intleft()Returns the value of theleftrecord component.inttop()Returns the value of thetoprecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
input
The field for theinputrecord component. -
left
private final int leftThe field for theleftrecord component. -
top
private final int topThe field for thetoprecord component. -
EMPTY
- Mappings:
Namespace Name Mixin selector named EMPTYLnet/minecraft/recipe/input/CraftingRecipeInput$Positioned;EMPTY:Lnet/minecraft/recipe/input/CraftingRecipeInput$Positioned;intermediary field_51896Lnet/minecraft/class_9694$class_9765;field_51896:Lnet/minecraft/class_9694$class_9765;official aLcyp$a;a:Lcyp$a;
-
-
Constructor Details
-
Positioned
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
input
Returns the value of theinputrecord component.- Returns:
- the value of the
inputrecord component
-
left
public int left()Returns the value of theleftrecord component.- Returns:
- the value of the
leftrecord component
-
top
public int top()Returns the value of thetoprecord component.- Returns:
- the value of the
toprecord component
-