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
Modifier and TypeFieldDescriptionprivate final 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
(IGeometryBakingContext context, ModelBaker baker, Function<Material, TextureAtlasSprite> spriteGetter, ModelState modelState, ItemOverrides overrides, ResourceLocation modelLocation) final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.void
resolveParents
(Function<ResourceLocation, UnbakedModel> modelGetter, IGeometryBakingContext context) Resolve parents of nestedBlockModel
s which are later used inIUnbakedGeometry.bake(IGeometryBakingContext, ModelBaker, Function, ModelState, ItemOverrides, ResourceLocation)
viaBlockModel.resolveParents(Function)
final String
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.IUnbakedGeometry
getConfigurableComponentNames
-
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(IGeometryBakingContext context, ModelBaker baker, Function<Material, TextureAtlasSprite> spriteGetter, ModelState modelState, ItemOverrides overrides, ResourceLocation modelLocation) - Specified by:
bake
in interfaceIUnbakedGeometry<FullPotsAccessorDemo.ClientHandler.DioritePotModelGeometry>
-
resolveParents
public void resolveParents(Function<ResourceLocation, UnbakedModel> modelGetter, IGeometryBakingContext context) Description copied from interface:IUnbakedGeometry
Resolve parents of nestedBlockModel
s which are later used inIUnbakedGeometry.bake(IGeometryBakingContext, ModelBaker, Function, ModelState, ItemOverrides, ResourceLocation)
viaBlockModel.resolveParents(Function)
- Specified by:
resolveParents
in 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 thewrappedModel
record component.- Returns:
- the value of the
wrappedModel
record component
-