Package net.minecraftforge.debug.block
Record Class FullPotsAccessorDemo.ClientHandler.DioritePotModelGeometry
java.lang.Object
java.lang.Record
net.minecraftforge.debug.block.FullPotsAccessorDemo.ClientHandler.DioritePotModelGeometry
- All Implemented Interfaces:
IModelGeometry<FullPotsAccessorDemo.ClientHandler.DioritePotModelGeometry>
- Enclosing class:
- FullPotsAccessorDemo.ClientHandler
private static record FullPotsAccessorDemo.ClientHandler.DioritePotModelGeometry(UnbakedModel wrappedModel)
extends Record
implements IModelGeometry<FullPotsAccessorDemo.ClientHandler.DioritePotModelGeometry>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final UnbakedModelThe field for thewrappedModelrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateDioritePotModelGeometry(UnbakedModel wrappedModel) Creates an instance of aDioritePotModelGeometryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbake(IModelConfiguration owner, ModelBakery bakery, Function<Material, TextureAtlasSprite> spriteGetter, ModelState modelTransform, ItemOverrides overrides, ResourceLocation modelLocation) final booleanIndicates whether some other object is "equal to" this one.getTextures(IModelConfiguration owner, Function<ResourceLocation, UnbakedModel> modelGetter, Set<com.mojang.datafixers.util.Pair<String, String>> missingTextureErrors) final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.Returns the value of thewrappedModelrecord component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraftforge.client.model.geometry.IModelGeometry
getPart, getParts
-
Field Details
-
wrappedModel
The field for thewrappedModelrecord component.
-
-
Constructor Details
-
DioritePotModelGeometry
Creates an instance of aDioritePotModelGeometryrecord class.- Parameters:
wrappedModel- the value for thewrappedModelrecord component
-
-
Method Details
-
bake
public BakedModel bake(IModelConfiguration owner, ModelBakery bakery, Function<Material, TextureAtlasSprite> spriteGetter, ModelState modelTransform, ItemOverrides overrides, ResourceLocation modelLocation) - Specified by:
bakein interfaceIModelGeometry<FullPotsAccessorDemo.ClientHandler.DioritePotModelGeometry>
-
getTextures
public Collection<Material> getTextures(IModelConfiguration owner, Function<ResourceLocation, UnbakedModel> modelGetter, Set<com.mojang.datafixers.util.Pair<String, String>> missingTextureErrors) - Specified by:
getTexturesin interfaceIModelGeometry<FullPotsAccessorDemo.ClientHandler.DioritePotModelGeometry>
-
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). -
wrappedModel
Returns the value of thewrappedModelrecord component.- Returns:
- the value of the
wrappedModelrecord component
-