Package codechicken.lib.model
Record Class CompositeItemModel.Geometry
java.lang.Object
java.lang.Record
codechicken.lib.model.CompositeItemModel.Geometry
- All Implemented Interfaces:
net.minecraftforge.client.model.geometry.IUnbakedGeometry<CompositeItemModel.Geometry>
- Enclosing class:
- CompositeItemModel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.client.resources.model.BakedModelbake(net.minecraftforge.client.model.geometry.IGeometryBakingContext context, net.minecraft.client.resources.model.ModelBaker baker, Function<net.minecraft.client.resources.model.Material, net.minecraft.client.renderer.texture.TextureAtlasSprite> spriteGetter, net.minecraft.client.resources.model.ModelState modelState, net.minecraft.client.renderer.block.model.ItemOverrides overrides, net.minecraft.resources.ResourceLocation modelLocation) children()Returns the value of thechildrenrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theitemPassesrecord component.voidresolveParents(Function<net.minecraft.resources.ResourceLocation, net.minecraft.client.resources.model.UnbakedModel> modelGetter, net.minecraftforge.client.model.geometry.IGeometryBakingContext context) final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
bake
public net.minecraft.client.resources.model.BakedModel bake(net.minecraftforge.client.model.geometry.IGeometryBakingContext context, net.minecraft.client.resources.model.ModelBaker baker, Function<net.minecraft.client.resources.model.Material, net.minecraft.client.renderer.texture.TextureAtlasSprite> spriteGetter, net.minecraft.client.resources.model.ModelState modelState, net.minecraft.client.renderer.block.model.ItemOverrides overrides, net.minecraft.resources.ResourceLocation modelLocation) - Specified by:
bakein interfacenet.minecraftforge.client.model.geometry.IUnbakedGeometry<CompositeItemModel.Geometry>
-
resolveParents
public void resolveParents(Function<net.minecraft.resources.ResourceLocation, net.minecraft.client.resources.model.UnbakedModel> modelGetter, net.minecraftforge.client.model.geometry.IGeometryBakingContext context) - Specified by:
resolveParentsin interfacenet.minecraftforge.client.model.geometry.IUnbakedGeometry<CompositeItemModel.Geometry>
-
getConfigurableComponentNames
- Specified by:
getConfigurableComponentNamesin interfacenet.minecraftforge.client.model.geometry.IUnbakedGeometry<CompositeItemModel.Geometry>
-
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). -
children
Returns the value of thechildrenrecord component.- Returns:
- the value of the
childrenrecord component
-
itemPasses
Returns the value of theitemPassesrecord component.- Returns:
- the value of the
itemPassesrecord component
-