Class ModifiableAttributeInstance
- java.lang.Object
-
- net.minecraft.entity.ai.attributes.ModifiableAttributeInstance
-
- All Implemented Interfaces:
IAttributeInstance
public class ModifiableAttributeInstance extends java.lang.Object implements IAttributeInstance
+ This portion of EaglercraftX contains deobfuscated Minecraft 1.8 source code. Minecraft 1.8.8 bytecode is (c) 2015 Mojang AB. "Do not distribute!" Mod Coder Pack v9.18 deobfuscation configs are (c) Copyright by the MCP Team EaglercraftX 1.8 patch files are (c) 2022-2023 LAX1DUDE. All Rights Reserved. WITH THE EXCEPTION OF PATCH FILES, MINIFIED JAVASCRIPT, AND ALL FILES NORMALLY FOUND IN AN UNMODIFIED MINECRAFT RESOURCE PACK, YOU ARE NOT ALLOWED TO SHARE, DISTRIBUTE, OR REPURPOSE ANY FILE USED BY OR PRODUCED BY THE SOFTWARE IN THIS REPOSITORY WITHOUT PRIOR PERMISSION FROM THE PROJECT AUTHOR. NOT FOR COMMERCIAL OR MALICIOUS USE (please read the 'LICENSE' file this repo's root directory for more info)
-
-
Constructor Summary
Constructors Constructor Description ModifiableAttributeInstance(BaseAttributeMap attributeMapIn, IAttribute genericAttributeIn)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
applyModifier(AttributeModifier attributemodifier)
protected void
flagForUpdate()
java.util.Collection<AttributeModifier>
func_111122_c()
IAttribute
getAttribute()
+ Get the Attribute this is an instance ofdouble
getAttributeValue()
double
getBaseValue()
AttributeModifier
getModifier(EaglercraftUUID uuid)
+ Returns attribute modifier, if any, by the given UUIDjava.util.Collection<AttributeModifier>
getModifiersByOperation(int i)
boolean
hasModifier(AttributeModifier attributemodifier)
void
removeAllModifiers()
void
removeModifier(AttributeModifier attributemodifier)
void
setBaseValue(double d0)
-
-
-
Constructor Detail
-
ModifiableAttributeInstance
public ModifiableAttributeInstance(BaseAttributeMap attributeMapIn, IAttribute genericAttributeIn)
-
-
Method Detail
-
getAttribute
public IAttribute getAttribute()
+ Get the Attribute this is an instance of- Specified by:
getAttribute
in interfaceIAttributeInstance
-
getBaseValue
public double getBaseValue()
- Specified by:
getBaseValue
in interfaceIAttributeInstance
-
setBaseValue
public void setBaseValue(double d0)
- Specified by:
setBaseValue
in interfaceIAttributeInstance
-
getModifiersByOperation
public java.util.Collection<AttributeModifier> getModifiersByOperation(int i)
- Specified by:
getModifiersByOperation
in interfaceIAttributeInstance
-
func_111122_c
public java.util.Collection<AttributeModifier> func_111122_c()
- Specified by:
func_111122_c
in interfaceIAttributeInstance
-
getModifier
public AttributeModifier getModifier(EaglercraftUUID uuid)
+ Returns attribute modifier, if any, by the given UUID- Specified by:
getModifier
in interfaceIAttributeInstance
-
hasModifier
public boolean hasModifier(AttributeModifier attributemodifier)
- Specified by:
hasModifier
in interfaceIAttributeInstance
-
applyModifier
public void applyModifier(AttributeModifier attributemodifier)
- Specified by:
applyModifier
in interfaceIAttributeInstance
-
flagForUpdate
protected void flagForUpdate()
-
removeModifier
public void removeModifier(AttributeModifier attributemodifier)
- Specified by:
removeModifier
in interfaceIAttributeInstance
-
removeAllModifiers
public void removeAllModifiers()
- Specified by:
removeAllModifiers
in interfaceIAttributeInstance
-
getAttributeValue
public double getAttributeValue()
- Specified by:
getAttributeValue
in interfaceIAttributeInstance
-
-