Record Class TeslaSynthesizerRecipeInput
java.lang.Object
java.lang.Record
tech.anonymoushacker1279.immersiveweapons.item.crafting.input.TeslaSynthesizerRecipeInput
- All Implemented Interfaces:
net.minecraft.world.item.crafting.RecipeInput
public record TeslaSynthesizerRecipeInput(net.minecraft.world.item.ItemStack material1, net.minecraft.world.item.ItemStack material2, net.minecraft.world.item.ItemStack material3)
extends Record
implements net.minecraft.world.item.crafting.RecipeInput
-
Constructor Summary
ConstructorsConstructorDescriptionTeslaSynthesizerRecipeInput(net.minecraft.world.item.ItemStack material1, net.minecraft.world.item.ItemStack material2, net.minecraft.world.item.ItemStack material3) Creates an instance of aTeslaSynthesizerRecipeInputrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.net.minecraft.world.item.ItemStackgetItem(int index) final inthashCode()Returns a hash code value for this object.net.minecraft.world.item.ItemStackReturns the value of thematerial1record component.net.minecraft.world.item.ItemStackReturns the value of thematerial2record component.net.minecraft.world.item.ItemStackReturns the value of thematerial3record component.intsize()final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.world.item.crafting.RecipeInput
isEmpty
-
Constructor Details
-
TeslaSynthesizerRecipeInput
public TeslaSynthesizerRecipeInput(net.minecraft.world.item.ItemStack material1, net.minecraft.world.item.ItemStack material2, net.minecraft.world.item.ItemStack material3) Creates an instance of aTeslaSynthesizerRecipeInputrecord class.- Parameters:
material1- the value for thematerial1record componentmaterial2- the value for thematerial2record componentmaterial3- the value for thematerial3record component
-
-
Method Details
-
getItem
public net.minecraft.world.item.ItemStack getItem(int index) - Specified by:
getItemin interfacenet.minecraft.world.item.crafting.RecipeInput
-
size
public int size()- Specified by:
sizein interfacenet.minecraft.world.item.crafting.RecipeInput
-
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). -
material1
public net.minecraft.world.item.ItemStack material1()Returns the value of thematerial1record component.- Returns:
- the value of the
material1record component
-
material2
public net.minecraft.world.item.ItemStack material2()Returns the value of thematerial2record component.- Returns:
- the value of the
material2record component
-
material3
public net.minecraft.world.item.ItemStack material3()Returns the value of thematerial3record component.- Returns:
- the value of the
material3record component
-