Record Class RenderSource.ProfiledDummy
java.lang.Object
java.lang.Record
kr.toxicity.model.api.data.renderer.RenderSource.ProfiledDummy
- All Implemented Interfaces:
RenderSource<DummyTracker>,RenderSource.Dummy,Profiled
- Enclosing interface:
RenderSource<T extends Tracker>
public static record RenderSource.ProfiledDummy(@NotNull org.bukkit.Location location, @NotNull com.mojang.authlib.GameProfile profile, boolean isSlim)
extends Record
implements Profiled, RenderSource.Dummy
-
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
ConstructorsConstructorDescriptionProfiledDummy(@NotNull org.bukkit.Location location, @NotNull com.mojang.authlib.GameProfile profile, boolean isSlim) Creates an instance of aProfiledDummyrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull PlayerArmorarmors()Gets player armor@NotNull DummyTrackercreate(@NotNull RenderPipeline pipeline, @NotNull TrackerModifier modifier, @NotNull Consumer<DummyTracker> preUpdateConsumer) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisSlim()Returns the value of theisSlimrecord component.@NotNull org.bukkit.Locationlocation()Returns the value of thelocationrecord component.@NotNull com.mojang.authlib.GameProfileprofile()Returns the value of theprofilerecord component.@NotNull PlayerSkinPartsGets player skin customizationfinal StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ProfiledDummy
public ProfiledDummy(@NotNull @NotNull org.bukkit.Location location, @NotNull @NotNull com.mojang.authlib.GameProfile profile, boolean isSlim) Creates an instance of aProfiledDummyrecord class.- Parameters:
location- the value for thelocationrecord componentprofile- the value for theprofilerecord componentisSlim- the value for theisSlimrecord component
-
-
Method Details
-
create
@NotNull public @NotNull DummyTracker create(@NotNull @NotNull RenderPipeline pipeline, @NotNull @NotNull TrackerModifier modifier, @NotNull @NotNull Consumer<DummyTracker> preUpdateConsumer) - Specified by:
createin interfaceRenderSource<DummyTracker>
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
location
@NotNull public @NotNull org.bukkit.Location location()Returns the value of thelocationrecord component.- Specified by:
locationin interfaceRenderSource<DummyTracker>- Returns:
- the value of the
locationrecord component
-
profile
@NotNull public @NotNull com.mojang.authlib.GameProfile profile()Returns the value of theprofilerecord component. -
isSlim
public boolean isSlim()Returns the value of theisSlimrecord component.
-