Record Class RenderSource.BaseDummy
java.lang.Object
java.lang.Record
kr.toxicity.model.api.data.renderer.RenderSource.BaseDummy
- Record Components:
location- the location
- All Implemented Interfaces:
RenderSource<DummyTracker>,RenderSource.Dummy
- Enclosing interface:
RenderSource<T extends Tracker>
public static record RenderSource.BaseDummy(@NotNull PlatformLocation location)
extends Record
implements RenderSource.Dummy
A basic implementation of
RenderSource.Dummy with a location.- Since:
- 1.15.2
-
Nested Class Summary
Nested classes/interfaces inherited from interface kr.toxicity.model.api.data.renderer.RenderSource
RenderSource.BaseDummy, RenderSource.BaseEntity, RenderSource.BasePlayer, RenderSource.Dummy, RenderSource.Entity, RenderSource.ProfiledDummy, RenderSource.ProfiledEntity, RenderSource.ProfiledPlayer -
Constructor Summary
ConstructorsConstructorDescriptionBaseDummy(@NotNull PlatformLocation location) Creates an instance of aBaseDummyrecord 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.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface kr.toxicity.model.api.data.renderer.RenderSource
fallbackContext
-
Constructor Details
-
BaseDummy
Creates an instance of aBaseDummyrecord class.- Parameters:
location- the value for thelocationrecord component
-
-
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
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). -
location
Returns the value of thelocationrecord component.- Specified by:
locationin interfaceRenderSource<DummyTracker>- Returns:
- the value of the
locationrecord component
-