Class EffectControllerComponent
java.lang.Object
com.hypixel.hytale.server.core.entity.effect.EffectControllerComponent
- All Implemented Interfaces:
Component<EntityStore>,Cloneable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final it.unimi.dsi.fastutil.ints.Int2ObjectMap<ActiveEntityEffect> protected intprotected int[]protected it.unimi.dsi.fastutil.objects.ObjectList<EntityEffectUpdate> static final BuilderCodec<EffectControllerComponent> protected booleanprotected booleanprotected ModelFields inherited from interface com.hypixel.hytale.component.Component
EMPTY_ARRAY -
Constructor Summary
ConstructorsConstructorDescriptionEffectControllerComponent(EffectControllerComponent effectControllerComponent) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddActiveEntityEffects(ActiveEntityEffect[] activeEntityEffects) private voidaddChange(EntityEffectUpdate update) booleanaddEffect(Ref<EntityStore> ownerRef, int entityEffectIndex, EntityEffect entityEffect, float duration, OverlapBehavior overlapBehavior, ComponentAccessor<EntityStore> componentAccessor) booleanaddEffect(Ref<EntityStore> ownerRef, int entityEffectIndex, EntityEffect entityEffect, ComponentAccessor<EntityStore> componentAccessor) booleanaddEffect(Ref<EntityStore> ownerRef, EntityEffect entityEffect, float duration, OverlapBehavior overlapBehavior, ComponentAccessor<EntityStore> componentAccessor) booleanaddEffect(Ref<EntityStore> ownerRef, EntityEffect entityEffect, ComponentAccessor<EntityStore> componentAccessor) booleanaddInfiniteEffect(Ref<EntityStore> ownerRef, int entityEffectIndex, EntityEffect entityEffect, ComponentAccessor<EntityStore> componentAccessor) voidvoidclearEffects(Ref<EntityStore> ownerRef, ComponentAccessor<EntityStore> componentAccessor) clone()booleanint[]it.unimi.dsi.fastutil.ints.Int2ObjectMap<ActiveEntityEffect> voidbooleanvoidremoveEffect(Ref<EntityStore> ownerRef, int entityEffectIndex, ComponentAccessor<EntityStore> componentAccessor) voidremoveEffect(Ref<EntityStore> ownerRef, int entityEffectIndex, RemovalBehavior removalBehavior, ComponentAccessor<EntityStore> componentAccessor) voidsetInvulnerable(boolean invulnerable) voidsetModelChange(Ref<EntityStore> ownerRef, EntityEffect entityEffect, int entityEffectIndex, ComponentAccessor<EntityStore> componentAccessor) toString()voidtryResetModelChange(Ref<EntityStore> ownerRef, int activeEffectIndex, ComponentAccessor<EntityStore> componentAccessor) Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.hypixel.hytale.component.Component
cloneSerializable
-
Field Details
-
CODEC
-
activeEffects
-
cachedActiveEffectIndexes
@Nullable protected int[] cachedActiveEffectIndexes -
changes
-
isNetworkOutdated
protected boolean isNetworkOutdated -
originalModel
-
activeModelChangeEntityEffectIndex
protected int activeModelChangeEntityEffectIndex -
isInvulnerable
protected boolean isInvulnerable
-
-
Constructor Details
-
EffectControllerComponent
public EffectControllerComponent() -
EffectControllerComponent
-
-
Method Details
-
getComponentType
-
isInvulnerable
public boolean isInvulnerable() -
setInvulnerable
public void setInvulnerable(boolean invulnerable) -
addEffect
public boolean addEffect(@Nonnull Ref<EntityStore> ownerRef, @Nonnull EntityEffect entityEffect, @Nonnull ComponentAccessor<EntityStore> componentAccessor) -
addEffect
public boolean addEffect(@Nonnull Ref<EntityStore> ownerRef, int entityEffectIndex, @Nonnull EntityEffect entityEffect, @Nonnull ComponentAccessor<EntityStore> componentAccessor) -
addEffect
public boolean addEffect(@Nonnull Ref<EntityStore> ownerRef, @Nonnull EntityEffect entityEffect, float duration, @Nonnull OverlapBehavior overlapBehavior, @Nonnull ComponentAccessor<EntityStore> componentAccessor) -
addEffect
public boolean addEffect(@Nonnull Ref<EntityStore> ownerRef, int entityEffectIndex, @Nonnull EntityEffect entityEffect, float duration, @Nonnull OverlapBehavior overlapBehavior, @Nonnull ComponentAccessor<EntityStore> componentAccessor) -
addInfiniteEffect
public boolean addInfiniteEffect(@Nonnull Ref<EntityStore> ownerRef, int entityEffectIndex, @Nonnull EntityEffect entityEffect, @Nonnull ComponentAccessor<EntityStore> componentAccessor) -
setModelChange
public void setModelChange(@Nonnull Ref<EntityStore> ownerRef, @Nonnull EntityEffect entityEffect, int entityEffectIndex, @Nonnull ComponentAccessor<EntityStore> componentAccessor) -
tryResetModelChange
public void tryResetModelChange(@Nonnull Ref<EntityStore> ownerRef, int activeEffectIndex, @Nonnull ComponentAccessor<EntityStore> componentAccessor) -
addActiveEntityEffects
-
removeEffect
public void removeEffect(@Nonnull Ref<EntityStore> ownerRef, int entityEffectIndex, @Nonnull ComponentAccessor<EntityStore> componentAccessor) -
removeEffect
public void removeEffect(@Nonnull Ref<EntityStore> ownerRef, int entityEffectIndex, @Nonnull RemovalBehavior removalBehavior, @Nonnull ComponentAccessor<EntityStore> componentAccessor) -
addChange
-
clearEffects
public void clearEffects(@Nonnull Ref<EntityStore> ownerRef, @Nonnull ComponentAccessor<EntityStore> componentAccessor) -
invalidateCache
public void invalidateCache() -
getActiveEffects
-
getActiveEffectIndexes
public int[] getActiveEffectIndexes() -
consumeNetworkOutdated
public boolean consumeNetworkOutdated() -
consumeChanges
-
clearChanges
public void clearChanges() -
createInitUpdates
-
getAllActiveEntityEffects
-
toString
-
clone
- Specified by:
clonein interfaceComponent<EntityStore>- Overrides:
clonein classObject
-