Package net.minecraft
Record Class class_8957
java.lang.Object
java.lang.Record
net.minecraft.class_8957
- Record Components:
width-height-ingredients-data-
public record class_8957(int width, int height, DefaultedList<Ingredient> ingredients, Optional<class_8957.class_8958> data)
extends Record
- Mappings:
Namespace Name official cptintermediary net/minecraft/class_8957named net/minecraft/class_8957official bintermediary comp_2081named widthofficial cintermediary comp_2082named heightofficial dintermediary comp_2083named ingredientsofficial eintermediary comp_2084named data
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Optional<class_8957.class_8958>The field for thedatarecord component.static final com.mojang.serialization.MapCodec<class_8957>private static final intprivate final intThe field for theheightrecord component.private final DefaultedList<Ingredient>The field for theingredientsrecord component.private final intThe field for thewidthrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionclass_8957(int int2, int int3, DefaultedList<Ingredient> defaultedList, Optional<class_8957.class_8958> optional) -
Method Summary
Modifier and TypeMethodDescriptiondata()Returns the value of thedatarecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intheight()Returns the value of theheightrecord component.Returns the value of theingredientsrecord component.booleanmethod_55078(RecipeInputInventory recipeInputInventory) private booleanmethod_55079(RecipeInputInventory recipeInputInventory, int int2, int int3, boolean bool) private static com.mojang.serialization.DataResult<class_8957>method_55080(class_8957.class_8958 class_8958) private static intmethod_55083(String string) (package private) static String[]method_55084(List<String> list) static class_8957method_55085(Map<Character, Ingredient> map, List<String> list) static class_8957method_55086(Map<Character, Ingredient> map, String[] string) voidmethod_55087(PacketByteBuf packetByteBuf) private static intmethod_55089(String string) static class_8957method_55090(PacketByteBuf packetByteBuf) final StringtoString()Returns a string representation of this record class.intwidth()Returns the value of thewidthrecord component.
-
Field Details
-
width
private final int widthThe field for thewidthrecord component. -
height
private final int heightThe field for theheightrecord component. -
ingredients
The field for theingredientsrecord component. -
data
The field for thedatarecord component. -
field_47322
private static final int field_47322- See Also:
- Mappings:
Namespace Name Mixin selector official fLcpt;f:Iintermediary field_47322Lnet/minecraft/class_8957;field_47322:Inamed field_47322Lnet/minecraft/class_8957;field_47322:I
-
field_47321
- Mappings:
Namespace Name Mixin selector official aLcpt;a:Lcom/mojang/serialization/MapCodec;intermediary field_47321Lnet/minecraft/class_8957;field_47321:Lcom/mojang/serialization/MapCodec;named field_47321Lnet/minecraft/class_8957;field_47321:Lcom/mojang/serialization/MapCodec;
-
-
Constructor Details
-
class_8957
public class_8957(int int2, int int3, DefaultedList<Ingredient> defaultedList, Optional<class_8957.class_8958> optional)
-
-
Method Details
-
method_55086
- Mappings:
Namespace Name Mixin selector official aLcpt;a(Ljava/util/Map;[Ljava/lang/String;)Lcpt;intermediary method_55086Lnet/minecraft/class_8957;method_55086(Ljava/util/Map;[Ljava/lang/String;)Lnet/minecraft/class_8957;named method_55086Lnet/minecraft/class_8957;method_55086(Ljava/util/Map;[Ljava/lang/String;)Lnet/minecraft/class_8957;
-
method_55085
- Mappings:
Namespace Name Mixin selector official aLcpt;a(Ljava/util/Map;Ljava/util/List;)Lcpt;intermediary method_55085Lnet/minecraft/class_8957;method_55085(Ljava/util/Map;Ljava/util/List;)Lnet/minecraft/class_8957;named method_55085Lnet/minecraft/class_8957;method_55085(Ljava/util/Map;Ljava/util/List;)Lnet/minecraft/class_8957;
-
method_55080
private static com.mojang.serialization.DataResult<class_8957> method_55080(class_8957.class_8958 class_8958) - Mappings:
Namespace Name Mixin selector official aLcpt;a(Lcpt$a;)Lcom/mojang/serialization/DataResult;intermediary method_55080Lnet/minecraft/class_8957;method_55080(Lnet/minecraft/class_8957$class_8958;)Lcom/mojang/serialization/DataResult;named method_55080Lnet/minecraft/class_8957;method_55080(Lnet/minecraft/class_8957$class_8958;)Lcom/mojang/serialization/DataResult;
-
method_55084
- Mappings:
Namespace Name Mixin selector official aLcpt;a(Ljava/util/List;)[Ljava/lang/String;intermediary method_55084Lnet/minecraft/class_8957;method_55084(Ljava/util/List;)[Ljava/lang/String;named method_55084Lnet/minecraft/class_8957;method_55084(Ljava/util/List;)[Ljava/lang/String;
-
method_55083
- Mappings:
Namespace Name Mixin selector official aLcpt;a(Ljava/lang/String;)Iintermediary method_55083Lnet/minecraft/class_8957;method_55083(Ljava/lang/String;)Inamed method_55083Lnet/minecraft/class_8957;method_55083(Ljava/lang/String;)I
-
method_55089
- Mappings:
Namespace Name Mixin selector official bLcpt;b(Ljava/lang/String;)Iintermediary method_55089Lnet/minecraft/class_8957;method_55089(Ljava/lang/String;)Inamed method_55089Lnet/minecraft/class_8957;method_55089(Ljava/lang/String;)I
-
method_55078
- Mappings:
Namespace Name Mixin selector official aLcpt;a(Lcia;)Zintermediary method_55078Lnet/minecraft/class_8957;method_55078(Lnet/minecraft/class_8566;)Znamed method_55078Lnet/minecraft/class_8957;method_55078(Lnet/minecraft/inventory/RecipeInputInventory;)Z
-
method_55079
private boolean method_55079(RecipeInputInventory recipeInputInventory, int int2, int int3, boolean bool) - Mappings:
Namespace Name Mixin selector official aLcpt;a(Lcia;IIZ)Zintermediary method_55079Lnet/minecraft/class_8957;method_55079(Lnet/minecraft/class_8566;IIZ)Znamed method_55079Lnet/minecraft/class_8957;method_55079(Lnet/minecraft/inventory/RecipeInputInventory;IIZ)Z
-
method_55087
- Mappings:
Namespace Name Mixin selector official aLcpt;a(Lue;)Vintermediary method_55087Lnet/minecraft/class_8957;method_55087(Lnet/minecraft/class_2540;)Vnamed method_55087Lnet/minecraft/class_8957;method_55087(Lnet/minecraft/network/PacketByteBuf;)V
-
method_55090
- Mappings:
Namespace Name Mixin selector official bLcpt;b(Lue;)Lcpt;intermediary method_55090Lnet/minecraft/class_8957;method_55090(Lnet/minecraft/class_2540;)Lnet/minecraft/class_8957;named method_55090Lnet/minecraft/class_8957;method_55090(Lnet/minecraft/network/PacketByteBuf;)Lnet/minecraft/class_8957;
-
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 '=='. -
width
public int width()Returns the value of thewidthrecord component.- Returns:
- the value of the
widthrecord component
-
height
public int height()Returns the value of theheightrecord component.- Returns:
- the value of the
heightrecord component
-
ingredients
Returns the value of theingredientsrecord component.- Returns:
- the value of the
ingredientsrecord component
-
data
Returns the value of thedatarecord component.- Returns:
- the value of the
datarecord component
-