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
Modifier and TypeFieldDescriptionprivate UnbakedModel
The field for thewrappedModel
record component. -
Constructor Summary
ModifierConstructorDescriptionprivate
DioritePotModelGeometry(UnbakedModel wrappedModel)
Creates an instance of aDioritePotModelGeometry
record class. -
Method Summary
Modifier and TypeMethodDescriptionbake(IModelConfiguration owner, ModelBakery bakery, Function<Material,TextureAtlasSprite> spriteGetter, ModelState modelTransform, ItemOverrides overrides, ResourceLocation modelLocation)
boolean
Indicates 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)
int
hashCode()
Returns a hash code value for this object.toString()
Returns a string representation of this record class.Returns the value of thewrappedModel
record component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraftforge.client.model.geometry.IModelGeometry
getPart, getParts
-
Field Details
-
wrappedModel
The field for thewrappedModel
record component.
-
-
Constructor Details
-
DioritePotModelGeometry
Creates an instance of aDioritePotModelGeometry
record class.- Parameters:
wrappedModel
- the value for thewrappedModel
record component
-
-
Method Details
-
bake
public BakedModel bake(IModelConfiguration owner, ModelBakery bakery, Function<Material,TextureAtlasSprite> spriteGetter, ModelState modelTransform, ItemOverrides overrides, ResourceLocation modelLocation)- Specified by:
bake
in 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:
getTextures
in 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 thewrappedModel
record component.- Returns:
- the value of the
wrappedModel
record component
-