Class BuffStatus
java.lang.Object
nokunami.floral_warfare.common.statusBuff.BuffStatus
- Direct Known Subclasses:
ButteredBuffStatus,ChilledBuffStatus,FrozenBuffStatus,HypnotizedBuffStatus
-
Constructor Summary
ConstructorsConstructorDescriptionBuffStatus(net.minecraft.world.effect.MobEffectCategory pCategory) BuffStatus(net.minecraft.world.effect.MobEffectCategory pCategory, int pColor) -
Method Summary
Modifier and TypeMethodDescriptionaddAttributeModifier(net.minecraft.world.entity.ai.attributes.Attribute pAttribute, String pUuid, double pAmount, net.minecraft.world.entity.ai.attributes.AttributeModifier.Operation pOperation) voidaddAttributeModifiers(net.minecraft.world.entity.LivingEntity livingEntity, net.minecraft.world.entity.ai.attributes.AttributeMap attributeMap, int amp) voidapplyEffectTick(net.minecraft.world.entity.LivingEntity livingEntity, int amp) voidapplyInstantenousEffect(net.minecraft.world.entity.Entity source, net.minecraft.world.entity.Entity indirectSource, net.minecraft.world.entity.LivingEntity livingEntity, int amp, double health) Map<net.minecraft.world.entity.ai.attributes.Attribute,net.minecraft.world.entity.ai.attributes.AttributeModifier> doublegetAttributeModifierValue(int amp, net.minecraft.world.entity.ai.attributes.AttributeModifier modifier) net.minecraft.world.effect.MobEffectCategoryintgetColor()List<net.minecraft.world.item.ItemStack>net.minecraft.network.chat.Componentprotected StringintgetSortOrder(BuffStatusInstance instance) booleanbooleanisDurationEffectTick(int pDuration, int pAmplifier) booleanvoidremoveAttributeModifiers(net.minecraft.world.entity.LivingEntity livingEntity, net.minecraft.world.entity.ai.attributes.AttributeMap attributeMap, int amp)
-
Constructor Details
-
BuffStatus
public BuffStatus(net.minecraft.world.effect.MobEffectCategory pCategory) -
BuffStatus
public BuffStatus(net.minecraft.world.effect.MobEffectCategory pCategory, int pColor)
-
-
Method Details
-
createFactorData
-
applyEffectTick
public void applyEffectTick(net.minecraft.world.entity.LivingEntity livingEntity, int amp) -
applyInstantenousEffect
public void applyInstantenousEffect(net.minecraft.world.entity.Entity source, net.minecraft.world.entity.Entity indirectSource, net.minecraft.world.entity.LivingEntity livingEntity, int amp, double health) -
isDurationEffectTick
public boolean isDurationEffectTick(int pDuration, int pAmplifier) -
isInstantenous
public boolean isInstantenous() -
getOrCreateDescriptionId
-
getDescriptionId
-
getDisplayName
public net.minecraft.network.chat.Component getDisplayName() -
getCategory
public net.minecraft.world.effect.MobEffectCategory getCategory() -
getColor
public int getColor() -
getAttributeModifiers
public Map<net.minecraft.world.entity.ai.attributes.Attribute,net.minecraft.world.entity.ai.attributes.AttributeModifier> getAttributeModifiers() -
isBeneficial
public boolean isBeneficial() -
addAttributeModifier
public BuffStatus addAttributeModifier(net.minecraft.world.entity.ai.attributes.Attribute pAttribute, String pUuid, double pAmount, net.minecraft.world.entity.ai.attributes.AttributeModifier.Operation pOperation) -
removeAttributeModifiers
public void removeAttributeModifiers(net.minecraft.world.entity.LivingEntity livingEntity, net.minecraft.world.entity.ai.attributes.AttributeMap attributeMap, int amp) -
addAttributeModifiers
public void addAttributeModifiers(net.minecraft.world.entity.LivingEntity livingEntity, net.minecraft.world.entity.ai.attributes.AttributeMap attributeMap, int amp) -
getAttributeModifierValue
public double getAttributeModifierValue(int amp, net.minecraft.world.entity.ai.attributes.AttributeModifier modifier) -
getCurativeItems
-
getSortOrder
-