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$Positioned
intermediary net/minecraft/class_9694$class_9765
official cyp$a
named input
intermediary comp_2795
official b
named left
intermediary comp_2796
official c
named top
intermediary comp_2797
official d
-
Field Summary
Modifier and TypeFieldDescriptionstatic final CraftingRecipeInput.Positioned
private final CraftingRecipeInput
The field for theinput
record component.private final int
The field for theleft
record component.private final int
The field for thetop
record component. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.input()
Returns the value of theinput
record component.int
left()
Returns the value of theleft
record component.int
top()
Returns the value of thetop
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
input
The field for theinput
record component. -
left
private final int leftThe field for theleft
record component. -
top
private final int topThe field for thetop
record component. -
EMPTY
- Mappings:
Namespace Name Mixin selector named EMPTY
Lnet/minecraft/recipe/input/CraftingRecipeInput$Positioned;EMPTY:Lnet/minecraft/recipe/input/CraftingRecipeInput$Positioned;
intermediary field_51896
Lnet/minecraft/class_9694$class_9765;field_51896:Lnet/minecraft/class_9694$class_9765;
official a
Lcyp$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 theinput
record component.- Returns:
- the value of the
input
record component
-
left
public int left()Returns the value of theleft
record component.- Returns:
- the value of the
left
record component
-
top
public int top()Returns the value of thetop
record component.- Returns:
- the value of the
top
record component
-