Index

A B C D E F G H I M O P R S T U V 
All Classes and Interfaces|All Packages|Constant Field Values

A

accept() - Method in interface com.github.clevernucleus.dataattributes.api.util.VoidConsumer
 
add(T, float) - Method in class com.github.clevernucleus.dataattributes.api.util.RandDistribution
Adds to the internal inventory of the distributor.
ADDITION - Enum constant in enum class com.github.clevernucleus.dataattributes.api.attribute.FunctionBehaviour
Addition of values as defined by the parent attribute.
attackDamageModifierID() - Static method in class com.github.clevernucleus.dataattributes.api.item.ItemFields
 
attackSpeedModifierID() - Static method in class com.github.clevernucleus.dataattributes.api.item.ItemFields
 
AttributesReloadedEvent - Class in com.github.clevernucleus.dataattributes.api.event
Event that allows for logic reliant on datapack attributes to be ordered after they are loaded on both the server and client.
AttributesReloadedEvent() - Constructor for class com.github.clevernucleus.dataattributes.api.event.AttributesReloadedEvent
 
AttributesReloadedEvent.Reloaded - Interface in com.github.clevernucleus.dataattributes.api.event
 

B

behaviour() - Method in interface com.github.clevernucleus.dataattributes.api.attribute.IAttributeFunction
 
byteArrayToDouble(byte[]) - Static method in class com.github.clevernucleus.dataattributes.api.util.Maths
 

C

children() - Method in interface com.github.clevernucleus.dataattributes.api.attribute.IEntityAttribute
 
CLAMPED - Static variable in class com.github.clevernucleus.dataattributes.api.event.EntityAttributeModifiedEvents
Fired after the attribute instance value was calculated, but before it was output.
com.github.clevernucleus.dataattributes.api - package com.github.clevernucleus.dataattributes.api
 
com.github.clevernucleus.dataattributes.api.attribute - package com.github.clevernucleus.dataattributes.api.attribute
 
com.github.clevernucleus.dataattributes.api.event - package com.github.clevernucleus.dataattributes.api.event
 
com.github.clevernucleus.dataattributes.api.item - package com.github.clevernucleus.dataattributes.api.item
 
com.github.clevernucleus.dataattributes.api.util - package com.github.clevernucleus.dataattributes.api.util
 

D

DataAttributesAPI - Class in com.github.clevernucleus.dataattributes.api
The core API access - provides access to the modid and safe static attribute instantiation.
DataAttributesAPI() - Constructor for class com.github.clevernucleus.dataattributes.api.DataAttributesAPI
 
DIMINISHING - Enum constant in enum class com.github.clevernucleus.dataattributes.api.attribute.StackingBehaviour
 
doubleToByteArray(double, int) - Static method in class com.github.clevernucleus.dataattributes.api.util.Maths
 

E

EntityAttributeModifiedEvents - Class in com.github.clevernucleus.dataattributes.api.event
Holds some attribute events.
EntityAttributeModifiedEvents() - Constructor for class com.github.clevernucleus.dataattributes.api.event.EntityAttributeModifiedEvents
 
EntityAttributeModifiedEvents.Clamped - Interface in com.github.clevernucleus.dataattributes.api.event
 
EntityAttributeModifiedEvents.Modified - Interface in com.github.clevernucleus.dataattributes.api.event
 
enumLookupMap(V[], Function<V, K>) - Static method in class com.github.clevernucleus.dataattributes.api.util.Maths
Creates a static lookup map for the input enum#values implementation.
EVENT - Static variable in class com.github.clevernucleus.dataattributes.api.event.AttributesReloadedEvent
Fired on Server upon joining world and on datapack reload through '/reload'.

F

FLAT - Enum constant in enum class com.github.clevernucleus.dataattributes.api.attribute.StackingBehaviour
 
FunctionBehaviour - Enum Class in com.github.clevernucleus.dataattributes.api.attribute
 

G

getAttackDamage(ItemStack) - Method in interface com.github.clevernucleus.dataattributes.api.item.ItemHelper
ItemStack dependent version of SwordItem#getAttackDamage and MiningToolItem#getAttackDamage.
getAttribute(Identifier) - Static method in class com.github.clevernucleus.dataattributes.api.DataAttributesAPI
 
getAttributeModifiers(ItemStack, EquipmentSlot) - Method in interface com.github.clevernucleus.dataattributes.api.attribute.IItemEntityAttributeModifiers
This method provides a mutable attribute modifier multimap so that items can have dynamically changing modifiers based on nbt.
getDistributedRandom() - Method in class com.github.clevernucleus.dataattributes.api.util.RandDistribution
 
getEquipSound(ItemStack) - Method in interface com.github.clevernucleus.dataattributes.api.item.ItemHelper
ItemStack dependent version of Item#getEquipSound.
getProperty(String) - Method in interface com.github.clevernucleus.dataattributes.api.attribute.IEntityAttribute
 
getProtection(ItemStack) - Method in interface com.github.clevernucleus.dataattributes.api.item.ItemHelper
ItemStack dependent version of ArmorItem#getProtection.
getToughness(ItemStack) - Method in interface com.github.clevernucleus.dataattributes.api.item.ItemHelper
ItemStack dependent version of ArmorItem#getToughness.

H

hasProperty(String) - Method in interface com.github.clevernucleus.dataattributes.api.attribute.IEntityAttribute
 

I

IAttributeFunction - Interface in com.github.clevernucleus.dataattributes.api.attribute
 
id() - Method in enum class com.github.clevernucleus.dataattributes.api.attribute.FunctionBehaviour
 
id() - Method in enum class com.github.clevernucleus.dataattributes.api.attribute.StackingBehaviour
 
IEntityAttribute - Interface in com.github.clevernucleus.dataattributes.api.attribute
EntityAttribute's implement this through a mixin, and can be cast to this interface to get additional data added by Data Attributes.
IEntityAttributeInstance - Interface in com.github.clevernucleus.dataattributes.api.attribute
Access to an entity attribute instance.
ifPresent(LivingEntity, Supplier<EntityAttribute>, T, Function<Double, T>) - Static method in class com.github.clevernucleus.dataattributes.api.DataAttributesAPI
Allows for an Optional-like use of attributes that may or may not exist all the time.
IItemEntityAttributeModifiers - Interface in com.github.clevernucleus.dataattributes.api.attribute
Implement this in your Item class.
isWithinLimits(double, double, double) - Static method in class com.github.clevernucleus.dataattributes.api.util.Maths
 
ItemFields - Class in com.github.clevernucleus.dataattributes.api.item
Helper class that exposes Item.ATTACK_DAMAGE_MODIFIER_ID and Item.ATTACK_SPEED_MODIFIER_ID.
ItemHelper - Interface in com.github.clevernucleus.dataattributes.api.item
Helper interface to enable stack-specific operations.

M

Maths - Class in com.github.clevernucleus.dataattributes.api.util
Yes with an s because it's Mathematics not Mathematic.
Maths() - Constructor for class com.github.clevernucleus.dataattributes.api.util.Maths
 
max(double, double) - Method in enum class com.github.clevernucleus.dataattributes.api.attribute.StackingBehaviour
 
maxValue() - Method in interface com.github.clevernucleus.dataattributes.api.attribute.IEntityAttribute
 
minValue() - Method in interface com.github.clevernucleus.dataattributes.api.attribute.IEntityAttribute
 
MODID - Static variable in class com.github.clevernucleus.dataattributes.api.DataAttributesAPI
The modid for Data Attributes.
MODIFIED - Static variable in class com.github.clevernucleus.dataattributes.api.event.EntityAttributeModifiedEvents
Fired when the value of an attribute instance was modified, either by adding/removing a modifier or changing the value of the modifier, or by reloading the datapack and having the living entity renew its attribute container.
MULTIPLY - Enum constant in enum class com.github.clevernucleus.dataattributes.api.attribute.FunctionBehaviour
Multiplication of parent attribute.

O

of(byte) - Static method in enum class com.github.clevernucleus.dataattributes.api.attribute.FunctionBehaviour
 
of(byte) - Static method in enum class com.github.clevernucleus.dataattributes.api.attribute.StackingBehaviour
 
onClamped(EntityAttribute, double) - Method in interface com.github.clevernucleus.dataattributes.api.event.EntityAttributeModifiedEvents.Clamped
 
onCompletedReload() - Method in interface com.github.clevernucleus.dataattributes.api.event.AttributesReloadedEvent.Reloaded
 
onModified(EntityAttribute, LivingEntity, EntityAttributeModifier, double, boolean) - Method in interface com.github.clevernucleus.dataattributes.api.event.EntityAttributeModifiedEvents.Modified
 
onStackCreated(ItemStack, int) - Method in interface com.github.clevernucleus.dataattributes.api.item.ItemHelper
Fired on the constructor for itemstacks.

P

parents() - Method in interface com.github.clevernucleus.dataattributes.api.attribute.IEntityAttribute
 
parse(String) - Static method in class com.github.clevernucleus.dataattributes.api.util.Maths
Safe string to float.
properties() - Method in interface com.github.clevernucleus.dataattributes.api.attribute.IEntityAttribute
 

R

RandDistribution<T> - Class in com.github.clevernucleus.dataattributes.api.util
Specialised object that takes in a type and works out weighted distributions.
RandDistribution(T) - Constructor for class com.github.clevernucleus.dataattributes.api.util.RandDistribution
Constructor.
result(double, double, double, double, double) - Method in enum class com.github.clevernucleus.dataattributes.api.attribute.StackingBehaviour
 
result(double, double, double, double, double) - Method in interface com.github.clevernucleus.dataattributes.api.attribute.StackingFunction
 

S

stack(double, double) - Method in enum class com.github.clevernucleus.dataattributes.api.attribute.StackingBehaviour
 
stackingBehaviour() - Method in interface com.github.clevernucleus.dataattributes.api.attribute.IEntityAttribute
 
StackingBehaviour - Enum Class in com.github.clevernucleus.dataattributes.api.attribute
 
StackingFunction - Interface in com.github.clevernucleus.dataattributes.api.attribute
A functional interface used by stacking behaviour - essentially just a five input function.
stairs(double, double, double, double, double) - Static method in class com.github.clevernucleus.dataattributes.api.util.Maths
A staircase function.

T

toString() - Method in enum class com.github.clevernucleus.dataattributes.api.attribute.FunctionBehaviour
 
toString() - Method in enum class com.github.clevernucleus.dataattributes.api.attribute.StackingBehaviour
 

U

updateModifier(UUID, double) - Method in interface com.github.clevernucleus.dataattributes.api.attribute.IEntityAttributeInstance
Changes the value of the input modifier (if it exists) and updates the instance and all children.

V

value() - Method in interface com.github.clevernucleus.dataattributes.api.attribute.IAttributeFunction
 
valueOf(String) - Static method in enum class com.github.clevernucleus.dataattributes.api.attribute.FunctionBehaviour
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class com.github.clevernucleus.dataattributes.api.attribute.StackingBehaviour
Returns the enum constant of this class with the specified name.
values() - Static method in enum class com.github.clevernucleus.dataattributes.api.attribute.FunctionBehaviour
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class com.github.clevernucleus.dataattributes.api.attribute.StackingBehaviour
Returns an array containing the constants of this enum class, in the order they are declared.
VoidConsumer - Interface in com.github.clevernucleus.dataattributes.api.util
 
A B C D E F G H I M O P R S T U V 
All Classes and Interfaces|All Packages|Constant Field Values