Record Class RenderSource.ProfiledPlayer
java.lang.Object
java.lang.Record
kr.toxicity.model.api.data.renderer.RenderSource.ProfiledPlayer
- Record Components:
entity- the player entityexternalProfile- the external model profile
- All Implemented Interfaces:
RenderSource<EntityTracker>, RenderSource.Entity, RenderSource.Player, Profiled
- Enclosing interface:
RenderSource<T extends Tracker>
public static record RenderSource.ProfiledPlayer(@NotNull BasePlayer entity, ModelProfile.Uncompleted externalProfile)
extends Record
implements RenderSource.Player
A profiled implementation of
RenderSource.Entity wrapping a BasePlayer and a model profile.- 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
ConstructorsConstructorDescriptionProfiledPlayer(@NotNull BasePlayer entity, ModelProfile.Uncompleted externalProfile) Creates an instance of aProfiledPlayerrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull CompletableFuture<BoneRenderContext> Asynchronously completes the bone render context for this source.@NotNull BasePlayerentity()Returns the value of theentityrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexternalProfilerecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.Methods inherited from interface RenderSource
fallbackContextMethods inherited from interface RenderSource.Entity
locationMethods inherited from interface RenderSource.Player
armors, create, getOrCreate, profile, skinParts
-
Constructor Details
-
ProfiledPlayer
public ProfiledPlayer(@NotNull @NotNull BasePlayer entity, @NotNull ModelProfile.Uncompleted externalProfile) Creates an instance of aProfiledPlayerrecord class.- Parameters:
entity- the value for theentityrecord componentexternalProfile- the value for theexternalProfilerecord 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<EntityTracker>- 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). -
entity
Returns the value of theentityrecord component.- Specified by:
entityin interfaceRenderSource.Entity- Specified by:
entityin interfaceRenderSource.Player- Returns:
- the value of the
entityrecord component
-
externalProfile
Returns the value of theexternalProfilerecord component.- Returns:
- the value of the
externalProfilerecord component
-