Package net.minecraft.block.entity
Record Class PotatoRefineryBlockEntity.LubricationRecipe
java.lang.Object
java.lang.Record
net.minecraft.block.entity.PotatoRefineryBlockEntity.LubricationRecipe
- Record Components:
itemStack-result-
- All Implemented Interfaces:
PotatoRefineryBlockEntity.Recipe
- Enclosing class:
PotatoRefineryBlockEntity
private static record PotatoRefineryBlockEntity.LubricationRecipe(ItemStack itemStack, ItemStack result)
extends Record
implements PotatoRefineryBlockEntity.Recipe
- Mappings:
Namespace Name official drl$aintermediary net/minecraft/class_9578$class_9579named net/minecraft/block/entity/PotatoRefineryBlockEntity$LubricationRecipeofficial aintermediary comp_2590named itemStackofficial bintermediary comp_2591named result
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncraft(DynamicRegistryManager registryManager) final booleanIndicates whether some other object is "equal to" this one.intfinal inthashCode()Returns a hash code value for this object.Returns the value of theitemStackrecord component.result()Returns the value of theresultrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
Constructor Details
-
LubricationRecipe
-
-
Method Details
-
craft
- Specified by:
craftin interfacePotatoRefineryBlockEntity.Recipe- Mappings:
Namespace Name Mixin selector official aLdrl$d;a(Ljo;)Lcuh;intermediary method_59209Lnet/minecraft/class_9578$class_9582;method_59209(Lnet/minecraft/class_5455;)Lnet/minecraft/class_1799;named craftLnet/minecraft/block/entity/PotatoRefineryBlockEntity$Recipe;craft(Lnet/minecraft/registry/DynamicRegistryManager;)Lnet/minecraft/item/ItemStack;
-
getRefinementTIme
public int getRefinementTIme()- Specified by:
getRefinementTImein interfacePotatoRefineryBlockEntity.Recipe- Mappings:
Namespace Name Mixin selector official aLdrl$d;a()Iintermediary method_59208Lnet/minecraft/class_9578$class_9582;method_59208()Inamed getRefinementTImeLnet/minecraft/block/entity/PotatoRefineryBlockEntity$Recipe;getRefinementTIme()I
-
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). -
itemStack
Returns the value of theitemStackrecord component.- Returns:
- the value of the
itemStackrecord component
-
result
Returns the value of theresultrecord component.- Returns:
- the value of the
resultrecord component
-