HyCodeYourTale
classpublicPriority 1

EffectControllerComponent

com.hypixel.hytale.server.core.entity.effect.EffectControllerComponent

implements Component

17

Methods

17

Public Methods

5

Fields

2

Constructors

Constants

BuilderCodec<EffectControllerComponent>CODEC= BuilderCodec.builder(EffectControllerComponent.class, EffectControllerComponent::new) .appe...

Constructors

public
EffectControllerComponent()
public
EffectControllerComponent(EffectControllerComponent effectControllerComponent)

Methods

Public Methods (17)

public
void addActiveEntityEffects(ActiveEntityEffect[] activeEntityEffects)
public
boolean addEffect(Ref<EntityStore> ownerRef, EntityEffect entityEffect, ComponentAccessor<EntityStore> componentAccessor)
public
void clearChanges()
public
void clearEffects(Ref<EntityStore> ownerRef, ComponentAccessor<EntityStore> componentAccessor)
public
EntityEffectUpdate[] consumeChanges()
@Nonnull
public
boolean consumeNetworkOutdated()
public
EntityEffectUpdate[] createInitUpdates()
@Nonnull
public
int[] getActiveEffectIndexes()
public
Int2ObjectMap<ActiveEntityEffect> getActiveEffects()
@Nonnull
public
ActiveEntityEffect[] getAllActiveEntityEffects()
@Nullable
publicstatic
ComponentType<EntityStore, EffectControllerComponent> getComponentType()
@Nonnull
public
void invalidateCache()
public
boolean isInvulnerable()
public
void removeEffect(Ref<EntityStore> ownerRef, int entityEffectIndex, ComponentAccessor<EntityStore> componentAccessor)
public
void setInvulnerable(boolean invulnerable)
public
String toString()
@Nonnull@Override
public
void tryResetModelChange(Ref<EntityStore> ownerRef, int activeEffectIndex, ComponentAccessor<EntityStore> componentAccessor)

Fields

Protected Fields (5)

protectedint activeModelChangeEntityEffectIndex
protectedint[] cachedActiveEffectIndexes
protectedboolean isInvulnerable
protectedboolean isNetworkOutdated
protectedModel originalModel

Related Classes