Record Class ModelRenderer
java.lang.Object
java.lang.Record
kr.toxicity.model.api.data.renderer.ModelRenderer
- Record Components:
name- nametype- typerendererGroups- group mapanimations- animations
public record ModelRenderer(@NotNull String name, @NotNull ModelRenderer.Type type, @NotNull @Unmodifiable Map<BoneName,RendererGroup> rendererGroups, @NotNull @Unmodifiable Map<String,BlueprintAnimation> animations)
extends Record
A blueprint renderer.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionModelRenderer(@NotNull String name, @NotNull ModelRenderer.Type type, @NotNull @Unmodifiable Map<BoneName, RendererGroup> rendererGroups, @NotNull @Unmodifiable Map<String, BlueprintAnimation> animations) Creates an instance of aModelRendererrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull Optional<BlueprintAnimation> Gets blueprint animation by name@NotNull @Unmodifiable Map<String, BlueprintAnimation> Returns the value of theanimationsrecord component.@NotNull EntityTrackercreate(@NotNull BaseEntity entity) Creates tracker by entity@NotNull EntityTrackercreate(@NotNull BaseEntity entity, @NotNull com.mojang.authlib.GameProfile profile) Creates tracker by entity and profile@NotNull EntityTrackercreate(@NotNull BaseEntity entity, @NotNull com.mojang.authlib.GameProfile profile, boolean slim) Creates tracker by entity and profile@NotNull EntityTrackercreate(@NotNull BaseEntity entity, @NotNull com.mojang.authlib.GameProfile profile, boolean slim, @NotNull TrackerModifier modifier) Creates tracker by entity and profile@NotNull EntityTrackercreate(@NotNull BaseEntity entity, @NotNull com.mojang.authlib.GameProfile profile, boolean slim, @NotNull TrackerModifier modifier, @NotNull Consumer<EntityTracker> preUpdateConsumer) Creates tracker by entity and profile@NotNull EntityTrackercreate(@NotNull BaseEntity entity, @NotNull com.mojang.authlib.GameProfile profile, @NotNull TrackerModifier modifier) Creates tracker by entity and profile@NotNull EntityTrackercreate(@NotNull BaseEntity entity, @NotNull TrackerModifier modifier) Creates tracker by entity@NotNull EntityTrackercreate(@NotNull BaseEntity entity, @NotNull TrackerModifier modifier, @NotNull Consumer<EntityTracker> preUpdateConsumer) Creates tracker by entity@NotNull EntityTrackercreate(@NotNull BaseEntity entity, @NotNull org.bukkit.OfflinePlayer player) Creates tracker by entity and profile@NotNull EntityTrackercreate(@NotNull BaseEntity entity, @NotNull org.bukkit.OfflinePlayer player, @NotNull TrackerModifier modifier) Creates tracker by entity and player@NotNull DummyTrackercreate(@NotNull org.bukkit.Location location) Creates tracker by location@NotNull DummyTrackercreate(@NotNull org.bukkit.Location location, @NotNull com.mojang.authlib.GameProfile profile) Creates tracker by location and profile@NotNull DummyTrackercreate(@NotNull org.bukkit.Location location, @NotNull com.mojang.authlib.GameProfile profile, boolean slim) Creates tracker by location and profile@NotNull DummyTrackercreate(@NotNull org.bukkit.Location location, @NotNull com.mojang.authlib.GameProfile profile, boolean slim, @NotNull TrackerModifier modifier) Creates tracker by location and profile@NotNull DummyTrackercreate(@NotNull org.bukkit.Location location, @NotNull com.mojang.authlib.GameProfile profile, boolean slim, @NotNull TrackerModifier modifier, @NotNull Consumer<DummyTracker> preUpdateConsumer) Creates tracker by location and profile@NotNull DummyTrackercreate(@NotNull org.bukkit.Location location, @NotNull com.mojang.authlib.GameProfile profile, @NotNull TrackerModifier modifier) Creates tracker by location and profile@NotNull DummyTrackercreate(@NotNull org.bukkit.Location location, @NotNull TrackerModifier modifier) Creates tracker by location@NotNull DummyTrackercreate(@NotNull org.bukkit.Location location, @NotNull TrackerModifier modifier, @NotNull Consumer<DummyTracker> preUpdateConsumer) Creates tracker by location@NotNull DummyTrackercreate(@NotNull org.bukkit.Location location, @NotNull org.bukkit.OfflinePlayer player) Creates tracker by location and player@NotNull DummyTrackercreate(@NotNull org.bukkit.Location location, @NotNull org.bukkit.OfflinePlayer player, @NotNull TrackerModifier modifier) Creates tracker by location and player@NotNull EntityTrackercreate(@NotNull org.bukkit.entity.Entity entity) Creates tracker by entity@NotNull EntityTrackercreate(@NotNull org.bukkit.entity.Entity entity, @NotNull com.mojang.authlib.GameProfile profile) Creates tracker by entity and profile@NotNull EntityTrackercreate(@NotNull org.bukkit.entity.Entity entity, @NotNull com.mojang.authlib.GameProfile profile, boolean slim) Creates tracker by entity and profile@NotNull EntityTrackercreate(@NotNull org.bukkit.entity.Entity entity, @NotNull com.mojang.authlib.GameProfile profile, boolean slim, @NotNull TrackerModifier modifier) Creates tracker by entity and profile@NotNull EntityTrackercreate(@NotNull org.bukkit.entity.Entity entity, @NotNull com.mojang.authlib.GameProfile profile, boolean slim, @NotNull TrackerModifier modifier, @NotNull Consumer<EntityTracker> preUpdateConsumer) Creates tracker by entity and profile@NotNull EntityTrackercreate(@NotNull org.bukkit.entity.Entity entity, @NotNull com.mojang.authlib.GameProfile profile, @NotNull TrackerModifier modifier) Creates tracker by entity and profile@NotNull EntityTrackercreate(@NotNull org.bukkit.entity.Entity entity, @NotNull TrackerModifier modifier) Creates tracker by entity@NotNull EntityTrackercreate(@NotNull org.bukkit.entity.Entity entity, @NotNull TrackerModifier modifier, @NotNull Consumer<EntityTracker> preUpdateConsumer) Creates tracker by entity@NotNull EntityTrackercreate(@NotNull org.bukkit.entity.Entity entity, @NotNull org.bukkit.OfflinePlayer player) Creates tracker by entity and profile@NotNull EntityTrackercreate(@NotNull org.bukkit.entity.Entity entity, @NotNull org.bukkit.OfflinePlayer player, @NotNull TrackerModifier modifier) Creates tracker by entity and playerfinal booleanIndicates whether some other object is "equal to" this one.@NotNull Stream<RendererGroup> flatten()Gets flatten groups.@NotNull EntityTrackergetOrCreate(@NotNull BaseEntity entity) Gets or creates tracker by entity@NotNull EntityTrackergetOrCreate(@NotNull BaseEntity entity, @NotNull com.mojang.authlib.GameProfile profile) Gets or creates tracker by entity and profile@NotNull EntityTrackergetOrCreate(@NotNull BaseEntity entity, @NotNull com.mojang.authlib.GameProfile profile, boolean slim) Gets or creates tracker by entity and profile@NotNull EntityTrackergetOrCreate(@NotNull BaseEntity entity, @NotNull com.mojang.authlib.GameProfile profile, boolean slim, @NotNull TrackerModifier modifier) Gets or creates tracker by entity and profile@NotNull EntityTrackergetOrCreate(@NotNull BaseEntity entity, @NotNull com.mojang.authlib.GameProfile profile, boolean slim, @NotNull TrackerModifier modifier, @NotNull Consumer<EntityTracker> preUpdateConsumer) Gets or creates tracker by entity and profile@NotNull EntityTrackergetOrCreate(@NotNull BaseEntity entity, @NotNull com.mojang.authlib.GameProfile profile, @NotNull TrackerModifier modifier) Gets or creates tracker by entity and profile@NotNull EntityTrackergetOrCreate(@NotNull BaseEntity entity, @NotNull TrackerModifier modifier) Gets or creates tracker by entity@NotNull EntityTrackergetOrCreate(@NotNull BaseEntity entity, @NotNull TrackerModifier modifier, @NotNull Consumer<EntityTracker> preUpdateConsumer) Gets or creates tracker by entity@NotNull EntityTrackergetOrCreate(@NotNull BaseEntity entity, @NotNull org.bukkit.OfflinePlayer player) Gets or creates tracker by entity and profile@NotNull EntityTrackergetOrCreate(@NotNull BaseEntity entity, @NotNull org.bukkit.OfflinePlayer player, @NotNull TrackerModifier modifier) Gets or creates tracker by entity and player@NotNull EntityTrackergetOrCreate(@NotNull org.bukkit.entity.Entity entity) Gets or creates tracker by entity@NotNull EntityTrackergetOrCreate(@NotNull org.bukkit.entity.Entity entity, @NotNull com.mojang.authlib.GameProfile profile) Gets or creates tracker by entity and profile@NotNull EntityTrackergetOrCreate(@NotNull org.bukkit.entity.Entity entity, @NotNull com.mojang.authlib.GameProfile profile, boolean slim) Gets or creates tracker by entity and profile@NotNull EntityTrackergetOrCreate(@NotNull org.bukkit.entity.Entity entity, @NotNull com.mojang.authlib.GameProfile profile, boolean slim, @NotNull TrackerModifier modifier) Gets or creates tracker by entity and profile@NotNull EntityTrackergetOrCreate(@NotNull org.bukkit.entity.Entity entity, @NotNull com.mojang.authlib.GameProfile profile, boolean slim, @NotNull TrackerModifier modifier, @NotNull Consumer<EntityTracker> preUpdateConsumer) Gets or creates tracker by entity and profile@NotNull EntityTrackergetOrCreate(@NotNull org.bukkit.entity.Entity entity, @NotNull com.mojang.authlib.GameProfile profile, @NotNull TrackerModifier modifier) Gets or creates tracker by entity and profile@NotNull EntityTrackergetOrCreate(@NotNull org.bukkit.entity.Entity entity, @NotNull TrackerModifier modifier) Gets or creates tracker by entity@NotNull EntityTrackergetOrCreate(@NotNull org.bukkit.entity.Entity entity, @NotNull TrackerModifier modifier, @NotNull Consumer<EntityTracker> preUpdateConsumer) Gets or creates tracker by entity@NotNull EntityTrackergetOrCreate(@NotNull org.bukkit.entity.Entity entity, @NotNull org.bukkit.OfflinePlayer player) Gets or creates tracker by entity and profile@NotNull EntityTrackergetOrCreate(@NotNull org.bukkit.entity.Entity entity, @NotNull org.bukkit.OfflinePlayer player, @NotNull TrackerModifier modifier) Gets or creates tracker by entity and player@Nullable RendererGroupgroupByTree(@NotNull BoneName name) Gets a renderer group by treefinal inthashCode()Returns a hash code value for this object.@NotNull Stringname()Gets model's name.@NotNull @Unmodifiable Map<BoneName, RendererGroup> Returns the value of therendererGroupsrecord component.final StringtoString()Returns a string representation of this record class.@NotNull ModelRenderer.Typetype()Returns the value of thetyperecord component.
-
Constructor Details
-
ModelRenderer
public ModelRenderer(@NotNull @NotNull String name, @NotNull @NotNull ModelRenderer.Type type, @NotNull @NotNull @Unmodifiable Map<BoneName, RendererGroup> rendererGroups, @NotNull @NotNull @Unmodifiable Map<String, BlueprintAnimation> animations) Creates an instance of aModelRendererrecord class.- Parameters:
name- the value for thenamerecord componenttype- the value for thetyperecord componentrendererGroups- the value for therendererGroupsrecord componentanimations- the value for theanimationsrecord component
-
-
Method Details
-
groupByTree
Gets a renderer group by tree- Parameters:
name- part name- Returns:
- group or null
-
flatten
Gets flatten groups.- Returns:
- flatten groups
-
animation
Gets blueprint animation by name- Parameters:
name- name- Returns:
- optional animation
-
name
Gets model's name.- Returns:
- name
-
create
Creates tracker by location- Parameters:
location- location- Returns:
- empty tracker
-
create
@NotNull public @NotNull DummyTracker create(@NotNull @NotNull org.bukkit.Location location, @NotNull @NotNull TrackerModifier modifier) Creates tracker by location- Parameters:
location- locationmodifier- modifier- Returns:
- empty tracker
-
create
@NotNull public @NotNull DummyTracker create(@NotNull @NotNull org.bukkit.Location location, @NotNull @NotNull TrackerModifier modifier, @NotNull @NotNull Consumer<DummyTracker> preUpdateConsumer) Creates tracker by location- Parameters:
location- locationmodifier- modifierpreUpdateConsumer- task on pre-update- Returns:
- empty tracker
-
create
@NotNull public @NotNull DummyTracker create(@NotNull @NotNull org.bukkit.Location location, @NotNull @NotNull org.bukkit.OfflinePlayer player) Creates tracker by location and player- Parameters:
location- locationplayer- player- Returns:
- empty tracker
-
create
@NotNull public @NotNull DummyTracker create(@NotNull @NotNull org.bukkit.Location location, @NotNull @NotNull com.mojang.authlib.GameProfile profile) Creates tracker by location and profile- Parameters:
location- locationprofile- profile- Returns:
- empty tracker
-
create
@NotNull public @NotNull DummyTracker create(@NotNull @NotNull org.bukkit.Location location, @NotNull @NotNull com.mojang.authlib.GameProfile profile, boolean slim) Creates tracker by location and profile- Parameters:
location- locationprofile- profileslim- slim- Returns:
- empty tracker
-
create
@NotNull public @NotNull DummyTracker create(@NotNull @NotNull org.bukkit.Location location, @NotNull @NotNull org.bukkit.OfflinePlayer player, @NotNull @NotNull TrackerModifier modifier) Creates tracker by location and player- Parameters:
location- locationplayer- playermodifier- modifier- Returns:
- empty tracker
-
create
@NotNull public @NotNull DummyTracker create(@NotNull @NotNull org.bukkit.Location location, @NotNull @NotNull com.mojang.authlib.GameProfile profile, @NotNull @NotNull TrackerModifier modifier) Creates tracker by location and profile- Parameters:
location- locationprofile- profilemodifier- modifier- Returns:
- empty tracker
-
create
@NotNull public @NotNull DummyTracker create(@NotNull @NotNull org.bukkit.Location location, @NotNull @NotNull com.mojang.authlib.GameProfile profile, boolean slim, @NotNull @NotNull TrackerModifier modifier) Creates tracker by location and profile- Parameters:
location- locationprofile- profileslim- slimmodifier- modifier- Returns:
- empty tracker
-
create
@NotNull public @NotNull DummyTracker create(@NotNull @NotNull org.bukkit.Location location, @NotNull @NotNull com.mojang.authlib.GameProfile profile, boolean slim, @NotNull @NotNull TrackerModifier modifier, @NotNull @NotNull Consumer<DummyTracker> preUpdateConsumer) Creates tracker by location and profile- Parameters:
location- locationprofile- profileslim- slimmodifier- modifierpreUpdateConsumer- task on pre-update- Returns:
- empty tracker
-
create
Creates tracker by entity- Parameters:
entity- entity- Returns:
- entity tracker
-
create
@NotNull public @NotNull EntityTracker create(@NotNull @NotNull org.bukkit.entity.Entity entity, @NotNull @NotNull org.bukkit.OfflinePlayer player) Creates tracker by entity and profile- Parameters:
entity- entityplayer- player- Returns:
- entity tracker
-
create
@NotNull public @NotNull EntityTracker create(@NotNull @NotNull org.bukkit.entity.Entity entity, @NotNull @NotNull org.bukkit.OfflinePlayer player, @NotNull @NotNull TrackerModifier modifier) Creates tracker by entity and player- Parameters:
entity- entityplayer- playermodifier- modifier- Returns:
- entity tracker
-
create
@NotNull public @NotNull EntityTracker create(@NotNull @NotNull org.bukkit.entity.Entity entity, @NotNull @NotNull TrackerModifier modifier) Creates tracker by entity- Parameters:
entity- entitymodifier- modifier- Returns:
- entity tracker
-
create
@NotNull public @NotNull EntityTracker create(@NotNull @NotNull org.bukkit.entity.Entity entity, @NotNull @NotNull TrackerModifier modifier, @NotNull @NotNull Consumer<EntityTracker> preUpdateConsumer) Creates tracker by entity- Parameters:
entity- entitymodifier- modifierpreUpdateConsumer- task on pre-update- Returns:
- entity tracker
-
create
@NotNull public @NotNull EntityTracker create(@NotNull @NotNull org.bukkit.entity.Entity entity, @NotNull @NotNull com.mojang.authlib.GameProfile profile) Creates tracker by entity and profile- Parameters:
entity- entityprofile- profile- Returns:
- entity tracker
-
create
@NotNull public @NotNull EntityTracker create(@NotNull @NotNull org.bukkit.entity.Entity entity, @NotNull @NotNull com.mojang.authlib.GameProfile profile, boolean slim) Creates tracker by entity and profile- Parameters:
entity- entityprofile- profileslim- slim- Returns:
- entity tracker
-
create
@NotNull public @NotNull EntityTracker create(@NotNull @NotNull org.bukkit.entity.Entity entity, @NotNull @NotNull com.mojang.authlib.GameProfile profile, @NotNull @NotNull TrackerModifier modifier) Creates tracker by entity and profile- Parameters:
entity- entityprofile- profilemodifier- modifier- Returns:
- entity tracker
-
create
@NotNull public @NotNull EntityTracker create(@NotNull @NotNull org.bukkit.entity.Entity entity, @NotNull @NotNull com.mojang.authlib.GameProfile profile, boolean slim, @NotNull @NotNull TrackerModifier modifier) Creates tracker by entity and profile- Parameters:
entity- entityprofile- profileslim- slimmodifier- modifier- Returns:
- entity tracker
-
create
@NotNull public @NotNull EntityTracker create(@NotNull @NotNull org.bukkit.entity.Entity entity, @NotNull @NotNull com.mojang.authlib.GameProfile profile, boolean slim, @NotNull @NotNull TrackerModifier modifier, @NotNull @NotNull Consumer<EntityTracker> preUpdateConsumer) Creates tracker by entity and profile- Parameters:
entity- entityprofile- profileslim- slimmodifier- modifierpreUpdateConsumer- task on pre-update- Returns:
- entity tracker
-
getOrCreate
@NotNull public @NotNull EntityTracker getOrCreate(@NotNull @NotNull org.bukkit.entity.Entity entity) Gets or creates tracker by entity- Parameters:
entity- entity- Returns:
- entity tracker
-
getOrCreate
@NotNull public @NotNull EntityTracker getOrCreate(@NotNull @NotNull org.bukkit.entity.Entity entity, @NotNull @NotNull TrackerModifier modifier) Gets or creates tracker by entity- Parameters:
entity- entitymodifier- modifier- Returns:
- entity tracker
-
getOrCreate
@NotNull public @NotNull EntityTracker getOrCreate(@NotNull @NotNull org.bukkit.entity.Entity entity, @NotNull @NotNull TrackerModifier modifier, @NotNull @NotNull Consumer<EntityTracker> preUpdateConsumer) Gets or creates tracker by entity- Parameters:
entity- entitymodifier- modifierpreUpdateConsumer- task on pre-update- Returns:
- entity tracker
-
getOrCreate
@NotNull public @NotNull EntityTracker getOrCreate(@NotNull @NotNull org.bukkit.entity.Entity entity, @NotNull @NotNull org.bukkit.OfflinePlayer player) Gets or creates tracker by entity and profile- Parameters:
entity- entityplayer- player- Returns:
- entity tracker
-
getOrCreate
@NotNull public @NotNull EntityTracker getOrCreate(@NotNull @NotNull org.bukkit.entity.Entity entity, @NotNull @NotNull org.bukkit.OfflinePlayer player, @NotNull @NotNull TrackerModifier modifier) Gets or creates tracker by entity and player- Parameters:
entity- entityplayer- playermodifier- modifier- Returns:
- entity tracker
-
getOrCreate
@NotNull public @NotNull EntityTracker getOrCreate(@NotNull @NotNull org.bukkit.entity.Entity entity, @NotNull @NotNull com.mojang.authlib.GameProfile profile) Gets or creates tracker by entity and profile- Parameters:
entity- entityprofile- profile- Returns:
- entity tracker
-
getOrCreate
@NotNull public @NotNull EntityTracker getOrCreate(@NotNull @NotNull org.bukkit.entity.Entity entity, @NotNull @NotNull com.mojang.authlib.GameProfile profile, boolean slim) Gets or creates tracker by entity and profile- Parameters:
entity- entityprofile- profileslim- slim- Returns:
- entity tracker
-
getOrCreate
@NotNull public @NotNull EntityTracker getOrCreate(@NotNull @NotNull org.bukkit.entity.Entity entity, @NotNull @NotNull com.mojang.authlib.GameProfile profile, @NotNull @NotNull TrackerModifier modifier) Gets or creates tracker by entity and profile- Parameters:
entity- entityprofile- profilemodifier- modifier- Returns:
- entity tracker
-
getOrCreate
@NotNull public @NotNull EntityTracker getOrCreate(@NotNull @NotNull org.bukkit.entity.Entity entity, @NotNull @NotNull com.mojang.authlib.GameProfile profile, boolean slim, @NotNull @NotNull TrackerModifier modifier) Gets or creates tracker by entity and profile- Parameters:
entity- entityprofile- profileslim- slimmodifier- modifier- Returns:
- entity tracker
-
getOrCreate
@NotNull public @NotNull EntityTracker getOrCreate(@NotNull @NotNull org.bukkit.entity.Entity entity, @NotNull @NotNull com.mojang.authlib.GameProfile profile, boolean slim, @NotNull @NotNull TrackerModifier modifier, @NotNull @NotNull Consumer<EntityTracker> preUpdateConsumer) Gets or creates tracker by entity and profile- Parameters:
entity- entityprofile- profileslim- slimmodifier- modifierpreUpdateConsumer- task on pre-update- Returns:
- entity tracker
-
create
Creates tracker by entity- Parameters:
entity- entity- Returns:
- entity tracker
-
create
@NotNull public @NotNull EntityTracker create(@NotNull @NotNull BaseEntity entity, @NotNull @NotNull org.bukkit.OfflinePlayer player) Creates tracker by entity and profile- Parameters:
entity- entityplayer- player- Returns:
- entity tracker
-
create
@NotNull public @NotNull EntityTracker create(@NotNull @NotNull BaseEntity entity, @NotNull @NotNull org.bukkit.OfflinePlayer player, @NotNull @NotNull TrackerModifier modifier) Creates tracker by entity and player- Parameters:
entity- entityplayer- playermodifier- modifier- Returns:
- entity tracker
-
create
@NotNull public @NotNull EntityTracker create(@NotNull @NotNull BaseEntity entity, @NotNull @NotNull TrackerModifier modifier) Creates tracker by entity- Parameters:
entity- entitymodifier- modifier- Returns:
- entity tracker
-
create
@NotNull public @NotNull EntityTracker create(@NotNull @NotNull BaseEntity entity, @NotNull @NotNull TrackerModifier modifier, @NotNull @NotNull Consumer<EntityTracker> preUpdateConsumer) Creates tracker by entity- Parameters:
entity- entitymodifier- modifierpreUpdateConsumer- task on pre-update- Returns:
- entity tracker
-
create
@NotNull public @NotNull EntityTracker create(@NotNull @NotNull BaseEntity entity, @NotNull @NotNull com.mojang.authlib.GameProfile profile) Creates tracker by entity and profile- Parameters:
entity- entityprofile- profile- Returns:
- entity tracker
-
create
@NotNull public @NotNull EntityTracker create(@NotNull @NotNull BaseEntity entity, @NotNull @NotNull com.mojang.authlib.GameProfile profile, boolean slim) Creates tracker by entity and profile- Parameters:
entity- entityprofile- profileslim- slim- Returns:
- entity tracker
-
create
@NotNull public @NotNull EntityTracker create(@NotNull @NotNull BaseEntity entity, @NotNull @NotNull com.mojang.authlib.GameProfile profile, @NotNull @NotNull TrackerModifier modifier) Creates tracker by entity and profile- Parameters:
entity- entityprofile- profilemodifier- modifier- Returns:
- entity tracker
-
create
@NotNull public @NotNull EntityTracker create(@NotNull @NotNull BaseEntity entity, @NotNull @NotNull com.mojang.authlib.GameProfile profile, boolean slim, @NotNull @NotNull TrackerModifier modifier) Creates tracker by entity and profile- Parameters:
entity- entityprofile- profileslim- slimmodifier- modifier- Returns:
- entity tracker
-
create
@NotNull public @NotNull EntityTracker create(@NotNull @NotNull BaseEntity entity, @NotNull @NotNull com.mojang.authlib.GameProfile profile, boolean slim, @NotNull @NotNull TrackerModifier modifier, @NotNull @NotNull Consumer<EntityTracker> preUpdateConsumer) Creates tracker by entity and profile- Parameters:
entity- entityprofile- profileslim- slimmodifier- modifierpreUpdateConsumer- task on pre-update- Returns:
- entity tracker
-
getOrCreate
Gets or creates tracker by entity- Parameters:
entity- entity- Returns:
- entity tracker
-
getOrCreate
@NotNull public @NotNull EntityTracker getOrCreate(@NotNull @NotNull BaseEntity entity, @NotNull @NotNull TrackerModifier modifier) Gets or creates tracker by entity- Parameters:
entity- entitymodifier- modifier- Returns:
- entity tracker
-
getOrCreate
@NotNull public @NotNull EntityTracker getOrCreate(@NotNull @NotNull BaseEntity entity, @NotNull @NotNull TrackerModifier modifier, @NotNull @NotNull Consumer<EntityTracker> preUpdateConsumer) Gets or creates tracker by entity- Parameters:
entity- entitymodifier- modifierpreUpdateConsumer- task on pre-update- Returns:
- entity tracker
-
getOrCreate
@NotNull public @NotNull EntityTracker getOrCreate(@NotNull @NotNull BaseEntity entity, @NotNull @NotNull org.bukkit.OfflinePlayer player) Gets or creates tracker by entity and profile- Parameters:
entity- entityplayer- player- Returns:
- entity tracker
-
getOrCreate
@NotNull public @NotNull EntityTracker getOrCreate(@NotNull @NotNull BaseEntity entity, @NotNull @NotNull org.bukkit.OfflinePlayer player, @NotNull @NotNull TrackerModifier modifier) Gets or creates tracker by entity and player- Parameters:
entity- entityplayer- playermodifier- modifier- Returns:
- entity tracker
-
getOrCreate
@NotNull public @NotNull EntityTracker getOrCreate(@NotNull @NotNull BaseEntity entity, @NotNull @NotNull com.mojang.authlib.GameProfile profile) Gets or creates tracker by entity and profile- Parameters:
entity- entityprofile- profile- Returns:
- entity tracker
-
getOrCreate
@NotNull public @NotNull EntityTracker getOrCreate(@NotNull @NotNull BaseEntity entity, @NotNull @NotNull com.mojang.authlib.GameProfile profile, boolean slim) Gets or creates tracker by entity and profile- Parameters:
entity- entityprofile- profileslim- slim- Returns:
- entity tracker
-
getOrCreate
@NotNull public @NotNull EntityTracker getOrCreate(@NotNull @NotNull BaseEntity entity, @NotNull @NotNull com.mojang.authlib.GameProfile profile, @NotNull @NotNull TrackerModifier modifier) Gets or creates tracker by entity and profile- Parameters:
entity- entityprofile- profilemodifier- modifier- Returns:
- entity tracker
-
getOrCreate
@NotNull public @NotNull EntityTracker getOrCreate(@NotNull @NotNull BaseEntity entity, @NotNull @NotNull com.mojang.authlib.GameProfile profile, boolean slim, @NotNull @NotNull TrackerModifier modifier) Gets or creates tracker by entity and profile- Parameters:
entity- entityprofile- profileslim- slimmodifier- modifier- Returns:
- entity tracker
-
getOrCreate
@NotNull public @NotNull EntityTracker getOrCreate(@NotNull @NotNull BaseEntity entity, @NotNull @NotNull com.mojang.authlib.GameProfile profile, boolean slim, @NotNull @NotNull TrackerModifier modifier, @NotNull @NotNull Consumer<EntityTracker> preUpdateConsumer) Gets or creates tracker by entity and profile- Parameters:
entity- entityprofile- profileslim- slimmodifier- modifierpreUpdateConsumer- task on pre-update- Returns:
- entity tracker
-
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). -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
rendererGroups
Returns the value of therendererGroupsrecord component.- Returns:
- the value of the
rendererGroupsrecord component
-
animations
Returns the value of theanimationsrecord component.- Returns:
- the value of the
animationsrecord component
-