Record Class ModelBaker.BlockItemModels
java.lang.Object
java.lang.Record
net.minecraft.client.render.model.ModelBaker.BlockItemModels
- Record Components:
block
-item
-
- Enclosing class:
ModelBaker
@Environment(CLIENT)
public static record ModelBaker.BlockItemModels(BlockStateModel block, ItemModel item)
extends Record
- Mappings:
Namespace Name named net/minecraft/client/render/model/ModelBaker$BlockItemModels
intermediary net/minecraft/class_1088$class_10812
official hna$b
named block
intermediary comp_3771
official a
named item
intermediary comp_3772
official b
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ModelBaker.BlockItemModels
bake
(BakedSimpleModel model, ErrorCollectingSpriteGetter errorCollectingSpriteGetter) block()
Returns the value of theblock
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.item()
Returns the value of theitem
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
Constructor Details
-
Method Details
-
bake
public static ModelBaker.BlockItemModels bake(BakedSimpleModel model, ErrorCollectingSpriteGetter errorCollectingSpriteGetter) - Mappings:
Namespace Name Mixin selector named bake
Lnet/minecraft/client/render/model/ModelBaker$BlockItemModels;bake(Lnet/minecraft/client/render/model/BakedSimpleModel;Lnet/minecraft/client/render/model/ErrorCollectingSpriteGetter;)Lnet/minecraft/client/render/model/ModelBaker$BlockItemModels;
intermediary method_68021
Lnet/minecraft/class_1088$class_10812;method_68021(Lnet/minecraft/class_10819;Lnet/minecraft/class_9826;)Lnet/minecraft/class_1088$class_10812;
official a
Lhna$b;a(Lhni;Lhnj;)Lhna$b;
-
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)
. -
block
Returns the value of theblock
record component.- Returns:
- the value of the
block
record component
-
item
Returns the value of theitem
record component.- Returns:
- the value of the
item
record component
-