Record Class RenderSource.BasePlayer
java.lang.Object
java.lang.Record
kr.toxicity.model.api.data.renderer.RenderSource.BasePlayer
- All Implemented Interfaces:
RenderSource<EntityTracker>,RenderSource.Entity,Profiled
- Enclosing interface:
RenderSource<T extends Tracker>
public static record RenderSource.BasePlayer(BasePlayer entity)
extends Record
implements RenderSource.Entity, Profiled
-
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
ConstructorsConstructorDescriptionBasePlayer(BasePlayer entity) Creates an instance of aBasePlayerrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull PlayerArmorarmors()Gets player armor@NotNull EntityTrackercreate(@NotNull RenderPipeline pipeline, @NotNull TrackerModifier modifier, @NotNull Consumer<EntityTracker> preUpdateConsumer) entity()Returns the value of theentityrecord component.final booleanIndicates whether some other object is "equal to" this one.@NotNull EntityTrackergetOrCreate(@NotNull String name, @NotNull Supplier<RenderPipeline> supplier, @NotNull TrackerModifier modifier, @NotNull Consumer<EntityTracker> preUpdateConsumer) final inthashCode()Returns a hash code value for this object.booleanisSlim()Checks this player's skin is slim@NotNull org.bukkit.Locationlocation()@NotNull com.mojang.authlib.GameProfileprofile()Gets player game profile@NotNull PlayerSkinPartsGets player skin customizationfinal StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BasePlayer
Creates an instance of aBasePlayerrecord class.- Parameters:
entity- the value for theentityrecord component
-
-
Method Details
-
create
@NotNull public @NotNull EntityTracker create(@NotNull @NotNull RenderPipeline pipeline, @NotNull @NotNull TrackerModifier modifier, @NotNull @NotNull Consumer<EntityTracker> preUpdateConsumer) - Specified by:
createin interfaceRenderSource<EntityTracker>
-
getOrCreate
@NotNull public @NotNull EntityTracker getOrCreate(@NotNull @NotNull String name, @NotNull @NotNull Supplier<RenderPipeline> supplier, @NotNull @NotNull TrackerModifier modifier, @NotNull @NotNull Consumer<EntityTracker> preUpdateConsumer) - Specified by:
getOrCreatein interfaceRenderSource.Entity
-
location
@NotNull public @NotNull org.bukkit.Location location()- Specified by:
locationin interfaceRenderSource<EntityTracker>
-
profile
@NotNull public @NotNull com.mojang.authlib.GameProfile profile()Description copied from interface:ProfiledGets player game profile -
isSlim
public boolean isSlim()Description copied from interface:ProfiledChecks this player's skin is slim -
armors
Description copied from interface:ProfiledGets player armor -
skinParts
Description copied from interface:ProfiledGets player skin customization -
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). -
entity
Returns the value of theentityrecord component.- Specified by:
entityin interfaceRenderSource.Entity- Returns:
- the value of the
entityrecord component
-