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$BlockItemModelsintermediary net/minecraft/class_1088$class_10812official hna$bnamed blockintermediary comp_3771official anamed itemintermediary comp_3772official b
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ModelBaker.BlockItemModelsbake(BakedSimpleModel model, ErrorCollectingSpriteGetter errorCollectingSpriteGetter) block()Returns the value of theblockrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.item()Returns the value of theitemrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
Constructor Details
-
BlockItemModels
-
-
Method Details
-
bake
public static ModelBaker.BlockItemModels bake(BakedSimpleModel model, ErrorCollectingSpriteGetter errorCollectingSpriteGetter) - Mappings:
Namespace Name Mixin selector named bakeLnet/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_68021Lnet/minecraft/class_1088$class_10812;method_68021(Lnet/minecraft/class_10819;Lnet/minecraft/class_9826;)Lnet/minecraft/class_1088$class_10812;official aLhna$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 theblockrecord component.- Returns:
- the value of the
blockrecord component
-
item
Returns the value of theitemrecord component.- Returns:
- the value of the
itemrecord component
-