Package codechicken.lib.model
Record Class ClassModelLoader.Geometry
java.lang.Object
java.lang.Record
codechicken.lib.model.ClassModelLoader.Geometry
- All Implemented Interfaces:
net.minecraftforge.client.model.geometry.IUnbakedGeometry<ClassModelLoader.Geometry>
- Enclosing class:
- ClassModelLoader
public static record ClassModelLoader.Geometry(Constructor<? extends net.minecraft.client.resources.model.BakedModel> ctor)
extends Record
implements net.minecraftforge.client.model.geometry.IUnbakedGeometry<ClassModelLoader.Geometry>
-
Constructor Summary
ConstructorsConstructorDescriptionGeometry(Constructor<? extends net.minecraft.client.resources.model.BakedModel> ctor) Creates an instance of aGeometryrecord class. -
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) Constructor<? extends net.minecraft.client.resources.model.BakedModel>ctor()Returns the value of thectorrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraftforge.client.model.geometry.IUnbakedGeometry
getConfigurableComponentNames, resolveParents
-
Constructor Details
-
Geometry
Creates an instance of aGeometryrecord class.- Parameters:
ctor- the value for thectorrecord component
-
-
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<ClassModelLoader.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). -
ctor
Returns the value of thectorrecord component.- Returns:
- the value of the
ctorrecord component
-