Record Class InstancerProviderImpl
java.lang.Object
java.lang.Record
com.jozufozu.flywheel.backend.engine.InstancerProviderImpl
- All Implemented Interfaces:
InstancerProvider
public record InstancerProviderImpl(EngineImpl engine, RenderStage renderStage)
extends Record
implements InstancerProvider
-
Constructor Summary
ConstructorsConstructorDescriptionInstancerProviderImpl(EngineImpl engine, RenderStage renderStage) Creates an instance of aInstancerProviderImplrecord class. -
Method Summary
Modifier and TypeMethodDescriptionengine()Returns the value of theenginerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.instancer(InstanceType<I> type, Model model) Get an instancer for the given instance type rendering the given model.Returns the value of therenderStagerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
InstancerProviderImpl
Creates an instance of aInstancerProviderImplrecord class.- Parameters:
engine- the value for theenginerecord componentrenderStage- the value for therenderStagerecord component
-
-
Method Details
-
instancer
Description copied from interface:InstancerProviderGet an instancer for the given instance type rendering the given model.Calling this method twice with the same arguments in the same frame will return the same instancer.
It is not safe to store instancers between frames. Each time you need an instancer, you should call this method.
- Specified by:
instancerin interfaceInstancerProvider- Returns:
- An instancer for the given instance type rendering the given model.
-
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). -
engine
Returns the value of theenginerecord component.- Returns:
- the value of the
enginerecord component
-
renderStage
Returns the value of therenderStagerecord component.- Returns:
- the value of the
renderStagerecord component
-