Record Class RenderSource.ProfiledDummy
java.lang.Object
java.lang.Record
kr.toxicity.model.api.data.renderer.RenderSource.ProfiledDummy
- Record Components:
location- the locationprofile- the model profile
- All Implemented Interfaces:
RenderSource<DummyTracker>, RenderSource.Dummy
- Enclosing interface:
RenderSource<T extends Tracker>
public static record RenderSource.ProfiledDummy(@NotNull PlatformLocation location, ModelProfile.Uncompleted profile)
extends Record
implements RenderSource.Dummy
A profiled implementation of
RenderSource.Dummy with a location and a model profile.- Since:
- 1.15.2
-
Nested Class Summary
Nested classes/interfaces inherited from interface RenderSource
RenderSource.BaseDummy, RenderSource.BaseEntity, RenderSource.BasePlayer, RenderSource.Dummy, RenderSource.Entity, RenderSource.ProfiledDummy, RenderSource.ProfiledEntity, RenderSource.ProfiledPlayer -
Constructor Summary
ConstructorsConstructorDescriptionProfiledDummy(@NotNull PlatformLocation location, ModelProfile.Uncompleted profile) Creates an instance of aProfiledDummyrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull CompletableFuture<BoneRenderContext> Asynchronously completes the bone render context for this source.@NotNull DummyTrackercreate(@NotNull RenderPipeline pipeline, @NotNull TrackerModifier modifier, @NotNull Consumer<DummyTracker> preUpdateConsumer) Creates a new tracker for this render source.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull PlatformLocationlocation()Returns the value of thelocationrecord component.profile()Returns the value of theprofilerecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from interface RenderSource
fallbackContext
-
Constructor Details
-
ProfiledDummy
public ProfiledDummy(@NotNull @NotNull PlatformLocation location, @NotNull ModelProfile.Uncompleted profile) Creates an instance of aProfiledDummyrecord class.
-
-
Method Details
-
create
@NotNull public @NotNull DummyTracker create(@NotNull @NotNull RenderPipeline pipeline, @NotNull @NotNull TrackerModifier modifier, @NotNull @NotNull Consumer<DummyTracker> preUpdateConsumer) Description copied from interface:RenderSourceCreates a new tracker for this render source.- Specified by:
createin interfaceRenderSource<DummyTracker>- Parameters:
pipeline- the render pipeline to usemodifier- the tracker modifierpreUpdateConsumer- a consumer to run before updates- Returns:
- the created tracker
-
completeContext
Description copied from interface:RenderSourceAsynchronously completes the bone render context for this source.This method may involve fetching skin data or other resources.
- Specified by:
completeContextin interfaceRenderSource<DummyTracker>- Returns:
- a future completing with the bone render context
-
toString
-
hashCode
-
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). -
location
Returns the value of thelocationrecord component.- Specified by:
locationin interfaceRenderSource<DummyTracker>- Returns:
- the value of the
locationrecord component
-
profile
-