Class ElementalInfusionComponent
java.lang.Object
dev.onyxstudios.cca.api.v3.item.ItemComponent
io.github.xrickastley.sevenelements.component.ElementalInfusionComponent
- All Implemented Interfaces:
dev.onyxstudios.cca.api.v3.component.Component,dev.onyxstudios.cca.api.v3.item.ItemTagInvalidationListener
public final class ElementalInfusionComponent
extends dev.onyxstudios.cca.api.v3.item.ItemComponent
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final dev.onyxstudios.cca.api.v3.component.ComponentKey<ElementalInfusionComponent>private static final org.slf4j.LoggerFields inherited from class dev.onyxstudios.cca.api.v3.item.ItemComponent
stack -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(DamageSource source, Entity target) static voidapplyInfusion(ItemStack stack, ElementalApplication.Builder applicationBuilder, InternalCooldownContext.Builder icdBuilder) static Optional<ElementalDamageSource>applyToDamageSource(DamageSource source, Entity target) booleanstatic ElementalInfusionComponent@Nullable Element@Nullable ElementalApplicationgetElementalInfusion(LivingEntity target) doublebooleanstatic booleanhasInfusion(ItemStack stack) static booleanremoveInfusion(ItemStack stack) voidvoidMethods inherited from class dev.onyxstudios.cca.api.v3.item.ItemComponent
getBoolean, getCompound, getDouble, getFloat, getInt, getKeys, getList, getList, getLong, getOrCreateRootTag, getRootTag, getRootTagKey, getString, getTag, getTag, getTag, getUuid, hashCode, hasTag, hasTag, hasTag, onTagInvalidated, putBoolean, putCompound, putDouble, putFloat, putInt, putList, putLong, putString, putUuid, readFromNbt, remove, wrapFactory, writeToNbt
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
KEY
public static final dev.onyxstudios.cca.api.v3.component.ComponentKey<ElementalInfusionComponent> KEY
-
-
Constructor Details
-
ElementalInfusionComponent
-
-
Method Details
-
applyToDamageSource
public static Optional<ElementalDamageSource> applyToDamageSource(DamageSource source, Entity target) -
applyInfusion
public static void applyInfusion(ItemStack stack, ElementalApplication.Builder applicationBuilder, InternalCooldownContext.Builder icdBuilder) -
removeInfusion
-
hasInfusion
-
get
-
elementalInfusion
-
internalCooldown
-
hasElementalInfusion
public boolean hasElementalInfusion() -
getElementalInfusion
-
getElement
-
getGaugeUnits
public double getGaugeUnits() -
setElementalInfusion
-
setInternalCooldown
-
apply
-
equals
- Specified by:
equalsin interfacedev.onyxstudios.cca.api.v3.component.Component- Overrides:
equalsin classdev.onyxstudios.cca.api.v3.item.ItemComponent
-