Record Class RenderSource.DelegatedDummy
java.lang.Object
java.lang.Record
kr.toxicity.model.api.data.renderer.RenderSource.DelegatedDummy
- Record Components:
location- the location
- All Implemented Interfaces:
RenderSource<DummyTracker>, RenderSource.Dummy
- Enclosing interface:
RenderSource<T extends Tracker>
public static record RenderSource.DelegatedDummy(@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 RenderSource
RenderSource.DelegatedDummy, RenderSource.DelegatedEntity, RenderSource.DelegatedPlayer, RenderSource.Dummy, RenderSource.Entity, RenderSource.Player, RenderSource.ProfiledDummy, RenderSource.ProfiledEntity, RenderSource.ProfiledPlayer -
Constructor Summary
ConstructorsConstructorDescriptionDelegatedDummy(@NotNull PlatformLocation location) Creates an instance of aDelegatedDummyrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull CompletableFuture<BoneRenderContext> Asynchronously completes the bone render context for this 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 interface RenderSource
fallbackContextMethods inherited from interface RenderSource.Dummy
create
-
Constructor Details
-
DelegatedDummy
Creates an instance of aDelegatedDummyrecord class.- Parameters:
location- the value for thelocationrecord component
-
-
Method Details
-
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
-