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 - dat$a- named - input- intermediary - comp_2795- official - b- named - left- intermediary - comp_2796- official - c- named - top- intermediary - comp_2797- official - d
- 
Field SummaryFieldsModifier 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 SummaryConstructors
- 
Method SummaryModifier 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- 
inputThe field for theinputrecord component.
- 
leftprivate final int leftThe field for theleftrecord component.
- 
topprivate final int topThe field for thetoprecord 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- Ldat$a;a:Ldat$a;
 
 
- 
- 
Constructor Details- 
Positioned
 
- 
- 
Method Details- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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 '=='.
- 
inputReturns the value of theinputrecord component.- Returns:
- the value of the inputrecord component
 
- 
leftpublic int left()Returns the value of theleftrecord component.- Returns:
- the value of the leftrecord component
 
- 
toppublic int top()Returns the value of thetoprecord component.- Returns:
- the value of the toprecord component
 
 
-