/** * Retrieve an attribute modifier by UUID. * @param id - the id to look for. * @return The single attribute modifier with the given ID. */ public WrappedAttributeModifier getModifierByUUID(UUID id) { if (hasModifier(id)) { for (WrappedAttributeModifier modifier : getModifiers()) { if (Objects.equal(modifier.getUUID(), id)) { return modifier; } } } return null; }