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:
IUnbakedGeometry<FullPotsAccessorDemo.ClientHandler.DioritePotModelGeometry>
- Enclosing class:
- FullPotsAccessorDemo.ClientHandler
private static record FullPotsAccessorDemo.ClientHandler.DioritePotModelGeometry(UnbakedModel wrappedModel)
extends Record
implements IUnbakedGeometry<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(IGeometryBakingContext context, ModelBakery bakery, Function<Material, TextureAtlasSprite> spriteGetter, ModelState modelState, ItemOverrides overrides, ResourceLocation modelLocation) final booleanIndicates whether some other object is "equal to" this one.getMaterials(IGeometryBakingContext context, 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.IUnbakedGeometry
getConfigurableComponentNames
-
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(IGeometryBakingContext context, ModelBakery bakery, Function<Material, TextureAtlasSprite> spriteGetter, ModelState modelState, ItemOverrides overrides, ResourceLocation modelLocation) - Specified by:
bakein interfaceIUnbakedGeometry<FullPotsAccessorDemo.ClientHandler.DioritePotModelGeometry>
-
getMaterials
public Collection<Material> getMaterials(IGeometryBakingContext context, Function<ResourceLocation, UnbakedModel> modelGetter, Set<com.mojang.datafixers.util.Pair<String, String>> missingTextureErrors) - Specified by:
getMaterialsin interfaceIUnbakedGeometry<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
-